UNPKG

php-wasm

Version:

Run PHP right in the browser or anywhere else JS can run

11 lines (9 loc) 532 B
import type { PhpRuntimeArgs, PhpRuntimeValue } from './public'; import { PhpBase } from './PhpBase.mjs'; export class PhpWorker extends PhpBase { constructor(args?: PhpRuntimeArgs); startTransaction(): Promise<void>; commitTransaction(readOnly?: boolean): Promise<void>; refresh(): Promise<void>; _enqueue(callback: (...params: Array<string | number | boolean | object | undefined>) => Promise<PhpRuntimeValue>, params?: Array<string | number | boolean | object | undefined>, readOnly?: boolean): Promise<PhpRuntimeValue>; }