// Type definitions for sandboxed-module v2.0.3 // Project: https://github.com/felixge/node-sandboxed-module // Definitions by: Sven Reglitzki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import SandboxedModule = require("sandboxed-module"); var sandboxedModule:SandboxedModule = SandboxedModule.load("foo"); var sandboxedModuleExports:any = SandboxedModule.require("foo"); SandboxedModule.configure({ globals: {Math} }); SandboxedModule.registerBuiltInSourceTransformer("coffee"); var sandboxedModuleExportsWithOptions:any = SandboxedModule.require("foo", { requires: { someDep: {} }, globals: { theAnswer: 42 }, locals: { someLocal: 1 }, sourceTransformers: { identity: (src:string) => src }, singleOnly: true, sourceTransformersSingleOnly: true });