type ResolveTypeGuard<G> = G extends (val: any) => val is infer V ? V : G extends (val: any) => boolean ? unknown : G extends string ? ResolveTypeTag<G> : unknown
Resolves an individual type guard (either a case-insensitive type tag string or an assertion/predicate function)
to its narrowed TypeScript type.
Resolves an individual type guard (either a case-insensitive type tag string or an assertion/predicate function) to its narrowed TypeScript type.