invariant.d.ts 284 B

123456
  1. /**
  2. * Throws an error if the condition is not met in development mode.
  3. * This is used to make development a better experience to provide guidance as
  4. * to where the error comes from.
  5. */
  6. export declare function invariant(condition: boolean, message: string | (() => string)): void;