MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / assert

Function assert

examples/acceptance/data-store-append.ts:12–14  ·  view source on GitHub ↗
(condition: unknown, message: string)

Source from the content-addressed store, hash-verified

10import type { DataPoint } from '../../src/config/types';
11
12const assert = (condition: unknown, message: string): void => {
13 if (!condition) throw new Error(message);
14};
15
16/**
17 * Minimal fake GPUDevice for Node.js acceptance tests.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected