Skip to content

Commit b99a281

Browse files
committed
typings
1 parent 69e1e1b commit b99a281

File tree

9 files changed

+2607
-4
lines changed

9 files changed

+2607
-4
lines changed

index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
"use strict";
22

3-
declare let module: any;
4-
declare let require: any;
5-
63
import { JavaScriptObfuscator } from 'javascript-obfuscator';
74

85
let multimatch: any = require('multimatch'),

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
"experimentalDecorators": true,
88
"removeComments": true,
99
"noImplicitAny": false
10-
}
10+
},
11+
"exclude": [
12+
"typings/browser",
13+
"typings/browser.d.ts"
14+
]
1115
}

typings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "webpack-obfuscator",
3+
"version": false,
4+
"ambientDependencies": {
5+
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#6834f97fb33561a3ad40695084da2b660efaee29",
6+
"javascript-obfuscator": "github:DefinitelyTyped/DefinitelyTyped/javascript-obfuscator/javascript-obfuscator.d.ts"
7+
}
8+
}

typings/browser.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference path="browser/ambient/javascript-obfuscator/index.d.ts" />
2+
/// <reference path="browser/ambient/node/index.d.ts" />
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Type definitions for javascript-obfuscator
2+
// Project: https://github.com/sanex3339/javascript-obfuscator
3+
// Definitions by: sanex3339 <https://github.com/sanex3339>
4+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5+
6+
declare module 'javascript-obfuscator' {
7+
export class JavaScriptObfuscator {
8+
public static obfuscate (sourceCode: string, customOptions?: any): string;
9+
}
10+
}

0 commit comments

Comments
 (0)