Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputGuesser - incomplete typing for reference input #562

Merged

Conversation

PawelSuwinski
Copy link
Contributor

@PawelSuwinski PawelSuwinski commented May 29, 2024

Adds missing types to InputGuesserProps to allow usage of ReferenceInput/ ReferenceInputArray extra props (ex. sort or filter).

However test case still fails with (updated, see below):

Property 'sort' does not exist on type (...)

Am I missing something (?)... I will come back to it when I have more time to dig it.

Fix: #561

@PawelSuwinski
Copy link
Contributor Author

PawelSuwinski commented Jun 7, 2024

Solved by giving ReferenceInput props as outer intersection, so now tests passes. However semantically previous commit (c75dfc5) looked more accurate to me, but then tests fails with "Property 'sort' does not exists" (?).

@soyuka soyuka requested a review from adguernier June 17, 2024 14:45
@adguernier adguernier merged commit a7827cb into api-platform:main Jun 24, 2024
3 checks passed
@fzaninotto
Copy link
Contributor

Merging this PR broke the main branch (see https://github.com/api-platform/admin/actions/runs/9647105787/job/26605107106). Can you revert or fix the build?

@soyuka
Copy link
Member

soyuka commented Jul 1, 2024

this was green before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InputGuesser - incomplete typing for reference input
4 participants