Negates the output of any given Type Guard and types accordingly using Exclude.
import { negateGuard, isNull } from 'type-guard-helpers'const test = 'a' as string | null;if (negateGuard(isNull, test)) { test; // string}
Generated using TypeDoc
Negates the output of any given Type Guard and types accordingly using Exclude.
Example