-
Notifications
You must be signed in to change notification settings - Fork 75
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
Types some of the any types and ignores rest #1493
Conversation
fe1f790
to
9ed5a51
Compare
9ed5a51
to
e93031f
Compare
e93031f
to
c52002c
Compare
The others could be typed too probably, but my understanding of the product is too low for it. And I set a 40 min time-frame on this to not to waste time. |
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.
Works for me 👍
Some of the typing info may be too specific now, reflecting how we use those functions instead how we could, but that's something we can fix when we need to :)
Follow-up to ansible#1493 editors can't seem to handle some of the typing bits, leading to `Property 'meta' does not exist on type 'never'.ts(2339)`, turns out `Promise<never>` is superfluous here, removing and also seeing Argument of type '(result: AxiosResponse<any>) => void' is not assignable to parameter of type '(value: AxiosResponse<any>) => AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'. Type 'void' is not assignable to type 'AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'.ts(2345) => changing `http` type back to `any`.
Follow-up to ansible#1493 editors can't seem to handle some of the typing bits, leading to `Property 'meta' does not exist on type 'never'.ts(2339)`, turns out `Promise<never>` is superfluous here, removing and also seeing Argument of type '(result: AxiosResponse<any>) => void' is not assignable to parameter of type '(value: AxiosResponse<any>) => AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'. Type 'void' is not assignable to type 'AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'.ts(2345) => changing `http` type back to `any`. No-issue
Follow-up to ansible#1493 editors can't seem to handle some of the typing bits, leading to `Property 'meta' does not exist on type 'never'.ts(2339)`, turns out `Promise<never>` is superfluous here, removing and also seeing Argument of type '(result: AxiosResponse<any>) => void' is not assignable to parameter of type '(value: AxiosResponse<any>) => AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'. Type 'void' is not assignable to type 'AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'.ts(2345) => changing `http` type back to `any`. No-issue
Follow-up to ansible#1493 editors can't seem to handle some of the typing bits, leading to `Property 'meta' does not exist on type 'never'.ts(2339)`, turns out `Promise<never>` is superfluous here, removing and also seeing Argument of type '(result: AxiosResponse<any>) => void' is not assignable to parameter of type '(value: AxiosResponse<any>) => AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'. Type 'void' is not assignable to type 'AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'.ts(2345) => changing `http` type back to `any`. No-Issue
Follow-up to #1493 editors can't seem to handle some of the typing bits, leading to `Property 'meta' does not exist on type 'never'.ts(2339)`, turns out `Promise<never>` is superfluous here, removing and also seeing Argument of type '(result: AxiosResponse<any>) => void' is not assignable to parameter of type '(value: AxiosResponse<any>) => AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'. Type 'void' is not assignable to type 'AxiosResponse<any> | PromiseLike<AxiosResponse<any>>'.ts(2345) => changing `http` type back to `any`. No-Issue
Improves upon #1465 with adding some easily type-able types