Given one or multiple Type Guards as array, returns a Type Guard that checks if the given value matches all given Type Guards.
import { guardPipe In, match, matchSchema } from 'type-guard-helpers';const isFooBar = guardAllIn([ matchSchema({ foo: match'foo') }), matchSchema({ bar: match'bar') })]); // val is { readonly foo: "foo"; } & { readonly bar: "bar"; }
Generated using TypeDoc
Given one or multiple Type Guards as array, returns a Type Guard that checks if the given value matches all given Type Guards.
Example