-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
30 lines (26 loc) · 942 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// From https://webpack.js.org/loaders/worker-loader/#loading-without-worker-loader
declare module '*.worker.ts' {
// You need to change `Worker`, if you specified a different value for the `workerType` option
class WebpackWorker extends Worker {
constructor();
}
// Uncomment this if you set the `esModule` option to `false`
// export = WebpackWorker;
export default WebpackWorker;
}
declare interface FileStoreFile {
name: string;
processed: boolean;
failed?: boolean;
ratio: number;
}
declare type FileStore = FileStoreFile[];
declare module 'eslint/lib/rules' {
import type { TSESLint } from '@typescript-eslint/experimental-utils';
type Rule = TSESLint.RuleModule<string, Array<unknown>>;
class LazyLoadingRuleMap extends Map<string, Rule> {
public constructor(loaders: Array<[string, () => Rule]>);
}
const rules: LazyLoadingRuleMap;
export = rules;
}