UNPKG

357 BTypeScriptView Raw
1/// <reference types='node' />
2
3export type Handler = (m: NodeModule, filename: string) => any;
4
5export const DEFAULT_EXTENSIONS: string[];
6
7export let oldHandlers: {
8 [ext: string]: Handler;
9};
10
11export function noOp(): void;
12
13export function restore(): void;
14
15export default function register(
16 extensions?: string[],
17 handler?: Handler,
18): void;