summaryrefslogtreecommitdiff
path: root/src/node_modules/javascript-obfuscator/src/declarations
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_modules/javascript-obfuscator/src/declarations')
-rw-r--r--src/node_modules/javascript-obfuscator/src/declarations/ESTree.d.ts45
-rw-r--r--src/node_modules/javascript-obfuscator/src/declarations/acorn-import-meta.d.ts7
-rw-r--r--src/node_modules/javascript-obfuscator/src/declarations/environment.d.ts8
-rw-r--r--src/node_modules/javascript-obfuscator/src/declarations/escodegen.d.ts24
-rw-r--r--src/node_modules/javascript-obfuscator/src/declarations/eslint-scope.d.ts14
5 files changed, 98 insertions, 0 deletions
diff --git a/src/node_modules/javascript-obfuscator/src/declarations/ESTree.d.ts b/src/node_modules/javascript-obfuscator/src/declarations/ESTree.d.ts
new file mode 100644
index 0000000..feb2f82
--- /dev/null
+++ b/src/node_modules/javascript-obfuscator/src/declarations/ESTree.d.ts
@@ -0,0 +1,45 @@
+/* eslint-disable */
+
+import * as acorn from 'acorn';
+import * as escodegen from '@javascript-obfuscator/escodegen';
+import * as eslintScope from 'eslint-scope';
+
+declare module 'estree' {
+ export interface BaseNodeMetadata {
+ forceTransformNode?: boolean;
+ ignoredNode?: boolean;
+ }
+
+ export interface Comment {
+ start: number;
+ end: number;
+ loc?: acorn.SourceLocation;
+ }
+
+ export interface LiteralNodeMetadata extends BaseNodeMetadata {
+ replacedLiteral?: boolean;
+ }
+
+ interface BaseNode {
+ metadata?: BaseNodeMetadata;
+ parentNode?: Node;
+ }
+
+ interface Program extends BaseNode {
+ scope?: eslintScope.Scope | null;
+ }
+
+ interface SimpleLiteral extends BaseNode {
+ metadata?: LiteralNodeMetadata;
+ 'x-verbatim-property'?: escodegen.XVerbatimProperty;
+ }
+
+ interface BigIntLiteral extends SimpleLiteral {
+ bigint: string;
+ }
+
+ interface RegExpLiteral extends BaseNode {
+ metadata?: LiteralNodeMetadata;
+ 'x-verbatim-property'?: escodegen.XVerbatimProperty;
+ }
+}
diff --git a/src/node_modules/javascript-obfuscator/src/declarations/acorn-import-meta.d.ts b/src/node_modules/javascript-obfuscator/src/declarations/acorn-import-meta.d.ts
new file mode 100644
index 0000000..dcdf0fc
--- /dev/null
+++ b/src/node_modules/javascript-obfuscator/src/declarations/acorn-import-meta.d.ts
@@ -0,0 +1,7 @@
+declare module 'acorn-import-meta' {
+ import * as acorn from 'acorn';
+
+ function acornImportMeta (BaseParser: typeof acorn.Parser): typeof acorn.Parser;
+
+ export = acornImportMeta;
+}
diff --git a/src/node_modules/javascript-obfuscator/src/declarations/environment.d.ts b/src/node_modules/javascript-obfuscator/src/declarations/environment.d.ts
new file mode 100644
index 0000000..15f603b
--- /dev/null
+++ b/src/node_modules/javascript-obfuscator/src/declarations/environment.d.ts
@@ -0,0 +1,8 @@
+/* eslint-disable */
+
+declare namespace NodeJS {
+ export interface ProcessEnv {
+ VERSION?: string;
+ BUILD_TIMESTAMP?: string;
+ }
+} \ No newline at end of file
diff --git a/src/node_modules/javascript-obfuscator/src/declarations/escodegen.d.ts b/src/node_modules/javascript-obfuscator/src/declarations/escodegen.d.ts
new file mode 100644
index 0000000..300b459
--- /dev/null
+++ b/src/node_modules/javascript-obfuscator/src/declarations/escodegen.d.ts
@@ -0,0 +1,24 @@
+/* eslint-disable */
+
+declare module '@javascript-obfuscator/escodegen' {
+ import * as ESTree from 'estree';
+ import * as escodegen from 'escodegen';
+ export * from 'escodegen';
+
+ export interface IGeneratorOutput {
+ code: string;
+ map: string;
+ }
+
+ export interface XVerbatimProperty {
+ content?: string;
+ precedence: escodegen.Precedence;
+ }
+
+ /**
+ * @param ast
+ * @param options
+ * @returns IGeneratorOutput
+ */
+ export function generate (ast: ESTree.Node, options?: escodegen.GenerateOptions): IGeneratorOutput;
+}
diff --git a/src/node_modules/javascript-obfuscator/src/declarations/eslint-scope.d.ts b/src/node_modules/javascript-obfuscator/src/declarations/eslint-scope.d.ts
new file mode 100644
index 0000000..7f9e474
--- /dev/null
+++ b/src/node_modules/javascript-obfuscator/src/declarations/eslint-scope.d.ts
@@ -0,0 +1,14 @@
+/* eslint-disable */
+
+import * as eslint from 'eslint';
+import * as eslintScope from 'eslint-scope';
+
+declare module 'eslint-scope' {
+ interface Variable {
+ scope: Scope;
+ }
+
+ interface Definition {
+ type: eslint.Scope.Definition['type'];
+ }
+}