-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Is there a way to approach Type Lamdas? #20269
Comments
Do you mean the same generic container type? If that's the case #1213 is tracking adding Higher Kinded Types. E.g. someting like interface ModuleActionProps<M extends Module, C> {
[key in keyof M]: <T, R>(payload: C<T>): C<R> // `C` is the collection type
} |
uh... I don't know how to describe what I want in terms. I think this approach could describe what I need: type GetGenericType1<F extends <T, R>(action$: Observable<T>): Observable<R>> = T type GetGenericType2<F extends <_, R>(action$: Observable<T>): Observable<R>> = R interface ModuleActionProps<M extends Module, C> {
[key in keyof M]: (payload: GetGenericType1<M[key]>): GetGenericType2<M[key]>
} |
maybe this question could be describe as Type Lambdas |
Related #12342 |
I think this should be covered by #21316 |
6606 version: express type lambda |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
I have a function with Generic types and I want transfer it into another function with the same Generic types:
The text was updated successfully, but these errors were encountered: