Represents a type guard function that narrows a value from Source to Target.
A TypeGuard is a function that takes a value of type Source and returns
a boolean indicating whether the value is of type Target. When it returns
true, TypeScript narrows the value to Target.
Represents a type guard function that narrows a value from
SourcetoTarget.A
TypeGuardis a function that takes a value of typeSourceand returns a boolean indicating whether the value is of typeTarget. When it returnstrue, TypeScript narrows the value toTarget.