diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 7d9e195..0000000 --- a/index.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -export = ScannerConstructor; -/** - * - * @param {Config} config - * @param {boolean} [updateThreatInfo=false] - */ -declare function ScannerConstructor(config: { - /** - * Google API KEY - */ - apiKey: string; - /** - * Unique identifier of the client - */ - clientId: string; - /** - * of the client - */ - Version: string; -}, updateThreatInfo?: boolean): Scanner | Promise; -declare class Scanner { - /** - * @typedef {Object} Config - * @property {string} apiKey Google API KEY - * @property {string} clientId Unique identifier of the client - * @property {string} Version of the client - */ - /** - * - * @param {Config} configuration object - * @param {boolean} updateThreatInfo should the threat info be updated - */ - constructor(Config: any, updateThreatInfo: boolean); - API_KEY: any; - CLIENT_INFO: { - clientId: any; - clientVersion: any; - }; - threatTypes: Set | string[]; - platformTypes: Set | string[]; - threatEntryTypes: Set | string[]; - getThreatInfos(): Promise; - /** - * - * @param {Array} urls - * @returns {Array} unsafe urls - */ - scan: (urls: Array) => Array; - /** - * - * @param {string} url - * @returns {boolean} is the url safe - */ - isSafe: (url: string) => boolean; - /** - * - * @param {Array} urls - * @returns {Array} safe urls - */ - getSafeUrls: (urls: Array) => Array; -}