Skip to content

Instantly share code, notes, and snippets.

@drmikecrowe
Created April 10, 2022 14:16
Show Gist options
  • Save drmikecrowe/f91f273406e48b303556f5c94c0678ca to your computer and use it in GitHub Desktop.
Save drmikecrowe/f91f273406e48b303556f5c94c0678ca to your computer and use it in GitHub Desktop.
TS2344: Type 'T[U]' does not satisfy the constraint '(...args: any) => any'.
Type 'T[OnlyFunctionPropertyNames<T>]' is not assignable to type '(...args: any) => any'.
Type 'T[T[keyof T] extends (...args: any) => any ? keyof T : never]' is not assignable to type '(...args: any) => any'.
Type 'T[keyof T]' is not assignable to type '(...args: any) => any'.
Type 'T[string] | T[number] | T[symbol]' is not assignable to type '(...args: any) => any'.
Type 'T[string]' is not assignable to type '(...args: any) => any'.
16 | T extends Composer<never>,
17 | U extends OnlyFunctionPropertyNames<T> = OnlyFunctionPropertyNames<T>,
> 18 | > = Filter<Parameters<T[U]>, Middleware<never>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment