diff --git a/notNeededPackages.json b/notNeededPackages.json index a405dd4741..de7d9e5d3a 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3864,6 +3864,12 @@ "sourceRepoURL": "https://github.com/sindresorhus/rev-hash", "asOfVersion": "3.0.0" }, + { + "libraryName": "rfc4648", + "typingsPackageName": "rfc4648", + "sourceRepoURL": "https://github.com/swansontec/rfc4648", + "asOfVersion": "1.3.0" + }, { "libraryName": "rgb-hex", "typingsPackageName": "rgb-hex", diff --git a/types/rfc4648/index.d.ts b/types/rfc4648/index.d.ts deleted file mode 100644 index d2992c1656..0000000000 --- a/types/rfc4648/index.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -// Type definitions for rfc4648 1.2 -// Project: https://github.com/swansontec/rfc4648 -// Definitions by: Thibault Meunier -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -type parseBase = ( - data: string, - options?: { - out?: { new(): T }; - loose?: boolean; - }, -) => T; - -type stringifyBase = (data: object, options?: { pad?: boolean }) => string; - -export namespace base64 { - const parse: parseBase; - const stringify: stringifyBase; -} - -export namespace base64url { - const parse: parseBase; - const stringify: stringifyBase; -} - -export namespace base32 { - const parse: parseBase; - const stringify: stringifyBase; -} - -export namespace base32hex { - const parse: parseBase; - const stringify: stringifyBase; -} - -export namespace base16 { - const parse: parseBase; - const stringify: stringifyBase; -} - -interface Encoding { - bits: number; - chars: string; -} - -export namespace codec { - function parse( - data: string, - encoding: Encoding, - options?: { - out?: { new(): T }; - loose?: boolean; - }, - ): T; - function stringify( - data: object, - encoding: Encoding, - options?: { pad?: boolean } - ): string; -} - -export {}; diff --git a/types/rfc4648/rfc4648-tests.ts b/types/rfc4648/rfc4648-tests.ts deleted file mode 100644 index e8034be699..0000000000 --- a/types/rfc4648/rfc4648-tests.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { base32, base64, codec } from "rfc4648"; - -base32.stringify([42, 121, 160]); -base32.parse("FJ42A==="); -base32.parse("He1l0==", { loose: true }); -base64.parse("AOk=", { out: Array }); -base64.parse("AOk", { loose: true }); - -const myEncoding = { - chars: "01234567", - bits: 3 -}; - -codec.stringify([220, 10], myEncoding); -codec.parse("670050", myEncoding, { loose: true }); diff --git a/types/rfc4648/tsconfig.json b/types/rfc4648/tsconfig.json deleted file mode 100644 index d62faa5420..0000000000 --- a/types/rfc4648/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "rfc4648-tests.ts" - ] -} \ No newline at end of file diff --git a/types/rfc4648/tslint.json b/types/rfc4648/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/rfc4648/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }