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