Type Alias: CheckNames<S, N>
ts
type CheckNames<S, N> = S extends string ? CheckRequirementName<S, N> : S extends readonly string[] ? { [K in keyof S]: S[K] extends string ? CheckRequirementName<S[K], N> : S[K] } : S;Defined in: packages/sveltekit/src/types.ts:10
Checks a name, a 'a|b' pipe list or an array of them against the names N. Any name passes when N is string (an untyped engine).
Type Parameters
| Type Parameter |
|---|
S |
N extends string |
