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
Say I have an interface
interface Applicative<T> {}
Now I want to define a function f that:
Function
U
Applicative
any
My naive attempts were
function f<U extends Applicative>(fn: Function, a: U<any>): U<Function>
and
function f<T, U<T> extends Applicative<T>>(fn: Function, a: U<any>): U<Function>
but none is valid
Can we have a Generic extend a type with a generic ?
The text was updated successfully, but these errors were encountered:
No, typescript doesn't have higher-kinded types.
Sorry, something went wrong.
Duplicate of #1213 and probably others.
No branches or pull requests
Say I have an interface
Now I want to define a function f that:
Function
and takes a typeU
extending anApplicative
wrappingany
U
wrappingFunction
My naive attempts were
and
but none is valid
Can we have a Generic extend a type with a generic ?
The text was updated successfully, but these errors were encountered: