Prepends a $id context parameter to an existing function type while preserving all original arguments and return type.
$id
The original function type to wrap.
type Original = (a: number, b: number) => string;type WithId = WithNowId<Original>;// Result:// (context: Now.Internal.WithID<{ annotation?: string }>, a: number, b: number) => string Copy
type Original = (a: number, b: number) => string;type WithId = WithNowId<Original>;// Result:// (context: Now.Internal.WithID<{ annotation?: string }>, a: number, b: number) => string
Prepends a
$idcontext parameter to an existing function type while preserving all original arguments and return type.