Type Alias MaybePlugin<P>

MaybePlugin<P>: Maybe<TAP, keyof ReturnType<P>>

Type to make TypeScript ok with accessing an unknown property, and just treating it as undefined if the plugin isn't loaded.

Type Parameters

  • P extends ((...a: any[]) => any)