UNPKG

baset-vm

Version:

VM package for BaseT project.

18 lines (17 loc) 617 B
/// <reference types="node" /> declare namespace NodeJS { interface Global { VMError: typeof import('./VMError').VMError; } } interface IExtensions { [index: string]: (module: NodeJS.Module, filename: string, dirname: string) => unknown; } interface IModules { [index: string]: NodeJS.Module; } declare type IEventName = 'beforeExit' | 'disconnect' | 'exit' | 'rejectionHandled' | 'uncaughtException' | 'unhandledRejection' | 'warning' | 'message' | 'newListener' | 'removeListener'; interface IHost extends NodeJS.Global { require: NodeRequireFunction; NodeVM: import('./').NodeVM; }