-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: export type for registerEndpoints #128
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the commit message to fix: ...
to reflect that we're making the type decls match reality. chore
should be reserved for internal package-related issues that don't affect any published behavior.
lib/typedefs.d.ts
Outdated
registerEndpoint(name: string, endpointFn: EndpointFn): void; | ||
registerEndpoints(endpoints: { [name: string]: EndpointFn }): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: These should return this
lib/typedefs.d.ts
Outdated
| ((cb?: any) => FetchResponse) | ||
| { | ||
[key: string]: (options: any, cb?: any) => FetchResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: The arguments to the actual methods don't necessarily include (or start with) a callback, so I'd probably make this (...args: any[])
or some such
0f719b1
to
79e4cf4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💚
No description provided.