UNPKG

@lpc-lang/core

Version:
18 lines 750 B
/** * Puts some LPC->JS helper functions into an object that can be used in a VM context * @returns */ export declare function createVmHelperContext(): { explode: (string: string | 0, delim: string) => string | 0 | string[]; implode: (array: string[] | 0, delim: string) => string | 0 | string[]; file_size: (path: string) => number; __lpcBinaryArrayHelper: <T>(left: T[], right: T[], op: string) => T[]; __lpcBinaryHelper: (left: any, right: any, op: string) => any; __lpcIndexAccessHelper: (array: any[], index: number | string | IndexAccessRange) => any; }; interface IndexAccessRange { start: number | string | undefined; end: number | string | undefined; } export {}; //# sourceMappingURL=lpcJsHelpers.d.ts.map