UNPKG

657 BTypeScriptView Raw
1// Type definitions for invariant 2.2
2// Project: https://github.com/zertosh/invariant
3// Definitions by: MichaelBennett <https://github.com/bennett000>
4// dtinth <https://github.com/dtinth>
5// Turadg Aleahmad <https://github.com/turadg>
6// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
8declare let invariant: invariant.InvariantStatic;
9
10export = invariant;
11export as namespace invariant;
12
13declare namespace invariant {
14 interface InvariantStatic {
15 (testValue: false, format: string, ...extra: any[]): never;
16 (testValue: any, format: string, ...extra: any[]): asserts testValue;
17 }
18}