Skip to content
Myr

refactor(types): delete type `NotSpecified` and `StrictVerifyOptions` (#4525)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kanon · committed by GitHub · parent a5f3958 · Browse files · 2 files+0 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: ysknsid25 <kengo071225@gmail.com>

Diff stats

2 files+0 added−11 removed

  • other:+0 added−11 removed

2 files+0 added−11 removed

modified:src/utils/jwt/jwt.ts-8 removed
87 unmodified lines
88 /** The algorithm used for decoding the token */89 alg?: SignatureAlgorithm90} & VerifyOptions9192type StrictVerifyOptions = {93 iss?: string | RegExp94 nbf: boolean95 exp: boolean96 iat: boolean97 aud?: string | string[] | RegExp98}9992export const verify = async (93 token: string,94 publicKey: SignatureKey,95 algOrOptions?: SignatureAlgorithm | VerifyOptionsWithAlg
147 unmodified lines
modified:src/types.ts-3 removed
2346 unmodified lines
2347 ? R2348 : never2349 : never23502351// Special type to indicate "not specified"2352type NotSpecified = { readonly __notSpecified: unique symbol }23532351type ProcessHead<T> = IfAnyThenEmptyObject<T extends Env ? (Env extends T ? {} : T) : T>2352export type IntersectNonAnyTypes<T extends any[]> = T extends [infer Head, ...infer Rest]2353 ? ProcessHead<Head> & IntersectNonAnyTypes<Rest>2354 : {}
13 unmodified lines