1 | // Type definitions for ignore-styles 5.0
|
2 | // Project: https://github.com/bkonkle/ignore-styles
|
3 | // Definitions by: Taiju Muto <https://github.com/tai2>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 | // TypeScript Version: 2.4
|
6 |
|
7 | /// <reference types='node' />
|
8 |
|
9 | export type Handler = (m: NodeModule, filename: string) => any;
|
10 |
|
11 | export const DEFAULT_EXTENSIONS: string[];
|
12 |
|
13 | export let oldHandlers: {
|
14 | [ext: string]: Handler
|
15 | };
|
16 |
|
17 | export function noOp(): void;
|
18 |
|
19 | export function restore(): void;
|
20 |
|
21 | export default function register(
|
22 | extensions?: string[],
|
23 | handler?: Handler
|
24 | ): void;
|