Remove the this parameter from a function.
this
Function type to modify
Produces a new function type without the this binding.
type Fn = ( this: { x: number }, y: string ) => void;type WithoutThis = OmitThisParameter< Fn >;// ( y: string ) => void Copy
type Fn = ( this: { x: number }, y: string ) => void;type WithoutThis = OmitThisParameter< Fn >;// ( y: string ) => void
Remove the
thisparameter from a function.