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

Include required in pagination result #254

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

AshotN
Copy link
Contributor

@AshotN AshotN commented Aug 20, 2023

Summary

I was using https://github.com/acacode/swagger-typescript-api to generate a TypeScript client based on the swagger file created by feathers-swagger and one issue I ran across is that pagination results had all optional properties.

Like this

/** Company pagination result */
export interface CompanyPaginationType {
  total?: number;
  limit?: number;
  skip?: number;
  data?: CompanyListType;
}

I believe this is not correct, so this PR address that and the outputted type looks like this now

/** Company pagination result */
export interface CompanyPaginationType {
  total: number;
  limit: number;
  skip: number;
  data: CompanyListType;
}

@AshotN AshotN mentioned this pull request Dec 25, 2023
@Mairu Mairu merged commit 589ba49 into feathersjs-ecosystem:master Dec 26, 2023
Mairu added a commit that referenced this pull request Dec 26, 2023
- chore: update dependencies and adjust tests
- fix: fix path of local js files for documentation
- ci: add node 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants