- Vite config with COOP/COEP headers for SharedArrayBuffer - SolidJS app renders at root URL without JS errors - WASM ML engine loads and inference returns 126 bounded [0,1] outputs - Debug probe (window.__nisps) exposed only with ?debug=1 - TypeScript strict mode with complete type coverage - Playwright e2e tests (8 tests) for VAL-PROJ-001/002/003 - WasmIML TypeScript port from playground/js/nisps/nisps-wasm.js - Dataset TypeScript port with FIFO ring buffer and sample weighting Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
30 lines
907 B
TypeScript
30 lines
907 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
// Type declaration for vite-plugin-cross-origin-isolation
|
|
declare module 'vite-plugin-cross-origin-isolation' {
|
|
interface Plugin {
|
|
name: string;
|
|
configureServer?: (server: any) => void;
|
|
configurePreviewServer?: (server: any) => void;
|
|
}
|
|
export default function crossOriginIsolation(): Plugin;
|
|
}
|
|
|
|
// Type declaration for Emscripten-generated nisps.js module (relative to src/core/)
|
|
declare module '*/wasm/nisps.js' {
|
|
interface NispsModuleInstance {
|
|
cwrap(
|
|
ident: string,
|
|
returnType: string | null,
|
|
argTypes: string[],
|
|
opts?: unknown
|
|
): (...args: unknown[]) => unknown;
|
|
HEAPF32: Float32Array;
|
|
HEAP32: Int32Array;
|
|
[key: string]: any;
|
|
}
|
|
|
|
type NispsModuleFactory = (moduleArg?: Record<string, any>) => Promise<NispsModuleInstance>;
|
|
const NispsModule: NispsModuleFactory;
|
|
export default NispsModule;
|
|
}
|