type WithScope<
TScopes extends OAuthScope,
TWanted extends OAuthScope,
TOptions
> =
IsNever<Extract<TScopes, TWanted>> extends true
? unknown
: TOptions;type WithScope<
TScopes extends OAuthScope,
TWanted extends OAuthScope,
TOptions
> =
IsNever<Extract<TScopes, TWanted>> extends true
? unknown
: TOptions;