UNPKG

php-wasm

Version:

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

11 lines (9 loc) • 567 B
import type { PhpRuntimeArgs, PhpRuntimeValue } from './public.d.ts'; import type { PhpBase } from './PhpBase.mjs'; export class PhpWorker extends PhpBase<[phpCode: string], void> { 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>; }