UNPKG

809 BTypeScriptView Raw
1import { CombinedAssertions } from './assertions/combined/CombinedAssertions';
2declare type AssertThat = (<TValue>(value: TValue) => ({
3 is: CombinedAssertions<TValue> & {
4 not: CombinedAssertions<TValue>;
5 };
6})) & {
7 eachElementOf: <TValue>(value: TValue) => TValue extends Set<infer TContent> ? {
8 is: CombinedAssertions<TContent> & {
9 not: CombinedAssertions<TContent>;
10 };
11 } : TValue extends Map<any, infer TContent> ? {
12 is: CombinedAssertions<TContent> & {
13 not: CombinedAssertions<TContent>;
14 };
15 } : TValue extends (infer TContent)[] ? {
16 is: CombinedAssertions<TContent> & {
17 not: CombinedAssertions<TContent>;
18 };
19 } : never;
20};
21declare const assert: {
22 that: AssertThat;
23};
24export { assert };