UNPKG

319 BTypeScriptView Raw
1declare let invariant: invariant.InvariantStatic;
2
3export = invariant;
4export as namespace invariant;
5
6declare namespace invariant {
7 interface InvariantStatic {
8 (testValue: false, format: string, ...extra: any[]): never;
9 (testValue: any, format: string, ...extra: any[]): asserts testValue;
10 }
11}