invariant.d.ts 482 B

1234567891011121314
  1. /// <reference types="node" />
  2. export declare class InvariantError extends Error {
  3. framesToPop: number;
  4. name: string;
  5. constructor(message?: string | number);
  6. }
  7. export declare function invariant(condition: any, message?: string | number): void;
  8. export declare namespace invariant {
  9. const warn: (...args: any[]) => void;
  10. const error: (...args: any[]) => void;
  11. }
  12. declare let processStub: NodeJS.Process;
  13. export { processStub as process };
  14. export default invariant;