1 | /**
|
2 | * Use invariant() to assert state which your program assumes to be true.
|
3 | *
|
4 | * Provide sprintf-style format (only %s is supported) and arguments to provide
|
5 | * information about what broke and what you were expecting.
|
6 | *
|
7 | * The invariant message will be stripped in production, but the invariant will
|
8 | * remain to ensure logic does not differ in production.
|
9 | */
|
10 | declare function invariant(condition: any, format: string, ...args: any[]): string;
|
11 |
|
12 | declare namespace invariant {}
|
13 |
|
14 | export = invariant;
|