UNPKG

wasmoon

Version:

A real lua VM with JS bindings made with webassembly

15 lines (14 loc) 732 B
import { BaseDecorationOptions, Decoration } from '../decoration'; import Global from '../global'; import TypeExtension from '../type-extension'; export interface FunctionDecoration extends BaseDecorationOptions { receiveArgsQuantity?: boolean; receiveThread?: boolean; self?: any; } export type FunctionType = (...args: any[]) => Promise<any> | any; export declare function decorateFunction(target: FunctionType, options: FunctionDecoration): Decoration<FunctionType, FunctionDecoration>; export interface FunctionTypeExtensionOptions { functionTimeout?: number; } export default function createTypeExtension(thread: Global, options?: FunctionTypeExtensionOptions): TypeExtension<FunctionType, FunctionDecoration>;