UNPKG

@sebastianwessel/quickjs

Version:

A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox

9 lines (8 loc) 371 B
import type { SandboxBaseOptions } from '../index.js'; /** * Determines the maximum allowed amount of concurrent intervals. * * @param runtimeOptions - The sandbox options containing `maxIntervalCount`. * @returns The configured `maxIntervalCount` or `10` if none is set. */ export declare const getMaxIntervalAmount: (runtimeOptions: SandboxBaseOptions) => number;