mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Update to typescript 3.0.1
This commit is contained in:
@@ -59,9 +59,9 @@ export abstract class AbstractCustomNode implements ICustomNode {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any[]} args
|
||||
* @param {unknown[]} args
|
||||
*/
|
||||
public abstract initialize (...args: any[]): void;
|
||||
public abstract initialize (...args: unknown[]): void;
|
||||
|
||||
/**
|
||||
* @returns {TStatement[]}
|
||||
|
||||
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
export interface IInitializable {
|
||||
export interface IInitializable <T extends any[] = never[]> {
|
||||
[key: string]: any;
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
initialize (...args: any[]): void;
|
||||
initialize (...args: T): void;
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import { TStatement } from '../../types/node/TStatement';
|
||||
|
||||
import { IInitializable } from '../IInitializable';
|
||||
|
||||
export interface ICustomNode extends IInitializable {
|
||||
export interface ICustomNode extends IInitializable<any[]> {
|
||||
/**
|
||||
* @returns ESTree.Node[]
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { IInitializable } from '../IInitializable';
|
||||
|
||||
export interface IObfuscatedCode extends IInitializable {
|
||||
export interface IObfuscatedCode extends IInitializable <[string, string]> {
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
|
||||
-5
@@ -28,11 +28,6 @@ export interface IArrayStorage <V> extends IInitializable {
|
||||
*/
|
||||
getStorageId (): string;
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
initialize (...args: any[]): void;
|
||||
|
||||
/**
|
||||
* @param storage
|
||||
* @param mergeId
|
||||
|
||||
-5
@@ -34,11 +34,6 @@ export interface IMapStorage <K, V> extends IInitializable {
|
||||
*/
|
||||
has (key: K): boolean;
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
initialize (...args: any[]): void;
|
||||
|
||||
/**
|
||||
* @param storage
|
||||
* @param mergeId
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
/* tslint:disable:interface-over-type-literal */
|
||||
|
||||
export type TObject <T = any> = {[key: string]: T};
|
||||
export type TObject <T = unknown> = {[key: string]: T};
|
||||
|
||||
Reference in New Issue
Block a user