Skip to content

Commit 7f239ad

Browse files
committed
update typings
1 parent b99a281 commit 7f239ad

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1+
// Generated by typings
2+
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/javascript-obfuscator/javascript-obfuscator.d.ts
13
// Type definitions for javascript-obfuscator
24
// Project: https://github.com/sanex3339/javascript-obfuscator
35
// Definitions by: sanex3339 <https://github.com/sanex3339>
46
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
57

68
declare module 'javascript-obfuscator' {
9+
export interface IOptions {
10+
compact?: boolean;
11+
debugProtection?: boolean;
12+
debugProtectionInterval?: boolean;
13+
disableConsoleOutput?: boolean;
14+
encodeUnicodeLiterals?: boolean;
15+
rotateUnicodeArray?: boolean;
16+
unicodeArray?: boolean;
17+
wrapUnicodeArrayCalls?: boolean;
18+
[id: string]: any;
19+
}
20+
721
export class JavaScriptObfuscator {
8-
public static obfuscate (sourceCode: string, customOptions?: any): string;
22+
public static obfuscate (sourceCode: string, customOptions?: IOptions): string;
923
}
1024
}
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1+
// Generated by typings
2+
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/javascript-obfuscator/javascript-obfuscator.d.ts
13
// Type definitions for javascript-obfuscator
24
// Project: https://github.com/sanex3339/javascript-obfuscator
35
// Definitions by: sanex3339 <https://github.com/sanex3339>
46
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
57

68
declare module 'javascript-obfuscator' {
9+
export interface IOptions {
10+
compact?: boolean;
11+
debugProtection?: boolean;
12+
debugProtectionInterval?: boolean;
13+
disableConsoleOutput?: boolean;
14+
encodeUnicodeLiterals?: boolean;
15+
rotateUnicodeArray?: boolean;
16+
unicodeArray?: boolean;
17+
wrapUnicodeArrayCalls?: boolean;
18+
[id: string]: any;
19+
}
20+
721
export class JavaScriptObfuscator {
8-
public static obfuscate (sourceCode: string, customOptions?: any): string;
22+
public static obfuscate (sourceCode: string, customOptions?: IOptions): string;
923
}
1024
}

0 commit comments

Comments
 (0)