You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Use the type of `default` as the last resort
: O extends (
{ default: infer D }
) ? D extends (
(...args: any) => any
// since default is a function, use its return type
) ? Exclude<ReturnType<D>, undefined>
: Exclude<D, undefined>
but I'm not 100%. Hopefully someone with know-how knows more.
The text was updated successfully, but these errors were encountered:
Currently the inferred types comes from:
see: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/ba6c5b11a9d9ff910766625d58a45743a70f6503/types/yargs/index.d.ts#L931C17-L931C17
But I think this should be something like:
but I'm not 100%. Hopefully someone with know-how knows more.
The text was updated successfully, but these errors were encountered: