forked from javascript-obfuscator/javascript-obfuscator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathespree.d.ts
More file actions
28 lines (23 loc) · 751 Bytes
/
Copy pathespree.d.ts
File metadata and controls
28 lines (23 loc) · 751 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
/* tslint:disable:interface-name */
declare module 'espree' {
import * as ESTree from 'estree';
export interface Comment {
value: string;
}
export type SourceType = 'script' | 'module';
export interface ParseOptions {
attachComment?: boolean;
comment?: boolean;
ecmaFeatures?: {
experimentalObjectRestSpread?: boolean;
globalReturn?: boolean;
impliedStrict?: boolean;
jsx?: boolean;
};
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 2015 | 2016 | 2017 | 2018;
loc?: boolean;
range?: boolean;
sourceType?: SourceType;
}
export function parse (code: string | Buffer, options: ParseOptions): ESTree.Program;
}