Extracts the guarded type from a TypeGuard.
TypeGuard
A TypeGuard type
The type that the guard checks for
type Person = { name: string; age: number};const isPerson = isType<Person>({ name: isString, age: isNumber,});type PersonType = Guarded<typeof isPerson>;// ^? Person Copy
type Person = { name: string; age: number};const isPerson = isType<Person>({ name: isString, age: isNumber,});type PersonType = Guarded<typeof isPerson>;// ^? Person
Extracts the guarded type from a
TypeGuard.