We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This interface definition
export interface PaginatedResponse<T> { pagination?: Pagination; [key: string]: T[] | Pagination; }
causes
Property 'pagination' of type 'Pagination | undefined' is not assignable to string index type 'Pagination | T[]'
since pagination can be undefined.
pagination
undefined
No TS errors.
Change pagination in PaginatedResponse interface to required.
PaginatedResponse
The text was updated successfully, but these errors were encountered:
Same here with TS 3.6.2
3.6.2
Sorry, something went wrong.
No branches or pull requests
Current Behavior
This interface definition
causes
since
pagination
can beundefined
.Expected Behavior
No TS errors.
Possible Solution
Change
pagination
inPaginatedResponse
interface to required.The text was updated successfully, but these errors were encountered: