-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtypes.d.ts
More file actions
30 lines (27 loc) · 758 Bytes
/
types.d.ts
File metadata and controls
30 lines (27 loc) · 758 Bytes
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
declare module karmaSourcemapLoader {
type File = {
path: string;
originalPath: string;
sourceMap?: SourceMap;
};
type Config = {
sourceMapLoader?: {
remapPrefixes?: Record<string, string>;
remapSource?: (source: string) => string | false | null | undefined;
useSourceRoot?:
| ((file: File) => string | false | null | undefined)
| string;
onlyWithURL?: boolean;
strict?: boolean;
};
};
type Preprocessor = (
content: string,
file: File,
done: (result: string | Error) => void
) => void;
type SourceMap = {
sources: string[];
sourceRoot?: string;
};
}