react-instantsearch-core
Version:
⚡ Lightning-fast search for React, by Algolia
10 lines (9 loc) • 361 B
TypeScript
/**
* Throws an error if the condition is not met.
*
* The error is exhaustive in development, and becomes generic in production.
*
* This is used to make development a better experience to provide guidance as
* to where the error comes from.
*/
export declare function invariant(condition: boolean, message: string | (() => string)): asserts condition;