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 |
|
8 | declare let invariant: invariant.InvariantStatic;
|
9 |
|
10 | export = invariant;
|
11 | export as namespace invariant;
|
12 |
|
13 | declare namespace invariant {
|
14 | interface InvariantStatic {
|
15 | (testValue: false, format: string, ...extra: any[]): never;
|
16 | (testValue: any, format: string, ...extra: any[]): asserts testValue;
|
17 | }
|
18 | }
|