PHP 8.2.30
Preview: tiny-invariant.flow.js Size: 306 B
/home/byroehnu/.trash/node_modules11/tiny-invariant/src/tiny-invariant.flow.js

// @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 || ''}`);
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
306 B lrw-r--r-- 2026-02-28 00:27:08
Edit Download
1.80 KB lrw-r--r-- 2026-02-28 00:28:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).