Sha256: 3ec046c31eaefc126ef48552526ec9ca4efc4a9129eab7e1061867e7ca4e7e3a
Contents?: true
Size: 306 Bytes
Versions: 14
Compression:
Stored size: 306 Bytes
Contents
// @flow // This file is not actually executed // It is just used by flow for typing const prefix: string = 'Invariant failed'; export default function invariant(condition: mixed, message?: string | (() => string)) { if (condition) { return; } throw new Error(`${prefix}: ${message || ''}`); }
Version data entries
14 entries across 14 versions & 1 rubygems