Skip to content

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