UNPKG

601 BTypeScriptView Raw
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
9export type Handler = (m: NodeModule, filename: string) => any;
10
11export const DEFAULT_EXTENSIONS: string[];
12
13export let oldHandlers: {
14 [ext: string]: Handler
15};
16
17export function noOp(): void;
18
19export function restore(): void;
20
21export default function register(
22 extensions?: string[],
23 handler?: Handler
24): void;