Consider, for the toml node module I can simply use:
// toml.d.ts declare module TOML { export function parse(value:string):any; } declare module \"toml
Use export =.
export =
Definition:
declare module 'glob' { function globs(paths: string, options: any, callback: (err: any, files: string[]) => void): any; export = globs; }
Usage (with esModuleInterop enabled):
import glob from 'glob'; glob("*.js", {}, (err, files) => { });