From 014442908f40af3d02f04a3bccdda270e91efcb8 Mon Sep 17 00:00:00 2001 From: lublak <44057030+lublak@users.noreply.github.com> Date: Tue, 20 Sep 2022 09:21:49 +0200 Subject: [PATCH] remove declare module https://github.com/import-js/eslint-import-resolver-typescript/issues/186 --- lib/index.d.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 6cdada8..ba5f8b1 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -5,24 +5,22 @@ * Install with `npm install @types/node --save-dev` *--------------------------------------------------------------------------------------------*/ -declare module 'iconv-lite' { - // Basic API - export function decode(buffer: Buffer | Uint8Array, encoding: string, options?: Options): string; +// Basic API +export function decode(buffer: Buffer | Uint8Array, encoding: string, options?: Options): string; - export function encode(content: string, encoding: string, options?: Options): Buffer; +export function encode(content: string, encoding: string, options?: Options): Buffer; - export function encodingExists(encoding: string): boolean; +export function encodingExists(encoding: string): boolean; - // Stream API - export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; +// Stream API +export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; - export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; +export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; - // Low-level stream APIs - export function getEncoder(encoding: string, options?: Options): EncoderStream; +// Low-level stream APIs +export function getEncoder(encoding: string, options?: Options): EncoderStream; - export function getDecoder(encoding: string, options?: Options): DecoderStream; -} +export function getDecoder(encoding: string, options?: Options): DecoderStream; export interface Options { stripBOM?: boolean;