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
I believe there is a typing issue with the Context interface in gsap-core.d.ts
Context
gsap-core.d.ts
interface Context { ... add(methodName: string, func: Function, scope?: Element | string | object): Function; add(func: Function, scope?: Element | string | object): void; ... }
As I understand it the second overload (adding to the context immediately) should return the 'return value' of the function passed to func i.e.
func
interface Context { ... add(methodName: string, func: Function, scope?: Element | string | object): Function; - add(func: Function, scope?: Element | string | object): void; + add<T extends Function>(func: T, scope?: Element | string | object): ReturnType<T>; ... }
Or at least thats the way it works for me :)
Zak.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I believe there is a typing issue with the
Context
interface ingsap-core.d.ts
As I understand it the second overload (adding to the context immediately) should return the 'return value' of the function passed to
func
i.e.Or at least thats the way it works for me :)
Zak.
The text was updated successfully, but these errors were encountered: