declarations
Version:
[](https://www.npmjs.com/package/declarations)
26 lines (23 loc) • 824 B
TypeScript
// Type definitions for javascript-obfuscator
// Project: https://github.com/sanex3339/javascript-obfuscator
// Definitions by: sanex3339 <https://github.com/sanex3339>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'javascript-obfuscator' {
export interface IOptions {
compact?: boolean;
debugProtection?: boolean;
debugProtectionInterval?: boolean;
disableConsoleOutput?: boolean;
encodeUnicodeLiterals?: boolean;
reservedNames?: string[];
rotateUnicodeArray?: boolean;
selfDefending?: boolean;
unicodeArray?: boolean;
unicodeArrayThreshold?: number;
wrapUnicodeArrayCalls?: boolean;
[id: string]: any;
}
export class JavaScriptObfuscator {
public static obfuscate (sourceCode: string, customOptions?: IOptions): string;
}
}