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