-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
51 lines (47 loc) · 1.11 KB
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export interface CsiMethod {
src: string
dst?: string
operator?: boolean
allowedWithoutCallee?: boolean
}
export interface RewriterConfig {
chainSourceMap?: boolean
comments?: boolean
localVarPrefix?: string
csiMethods?: Array<CsiMethod>
literals?: boolean
}
export interface Result {
content: string
metrics?: Metrics
literalsResult?: LiteralsResult
}
export interface Metrics {
status: string
instrumentedPropagation: number
file: string
propagationDebug?: Record<string, number>
}
export interface LiteralsResult {
file: string
literals: Array<LiteralInfo>
}
export interface LiteralLocation {
ident?: string
line: number
column: number
}
export interface LiteralInfo {
value: string
locations: Array<LiteralLocation>
}
export class NonCacheRewriter {
constructor(config?: RewriterConfig | undefined | null)
rewrite(code: string, file: string): Result
csiMethods(): Array<string>
}
export const Rewriter: NonCacheRewriter
export function cacheRewrittenSourceMap(filename: string, fileContent: string): void