3.0.4 • Published 6 months ago

@types/iconv v3.0.4

Weekly downloads
2,647
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/iconv

Summary

This package contains type definitions for iconv (https://github.com/bnoordhuis/node-iconv).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iconv.

index.d.ts

// Type definitions for iconv 3.0
// Project: https://github.com/bnoordhuis/node-iconv
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import { Stream } from 'stream';

interface Static {
    new (fromEncoding: string, toEncoding: string): Iconv;
    (fromEncoding: string, toEncoding: string): Iconv;
    prototype: Iconv;
}

export interface Iconv extends Stream {
    readonly writable: true;
    convert(input: string, encoding?: BufferEncoding): Buffer;
    convert(input: Buffer): Buffer;
    write(input: string, encoding?: BufferEncoding): boolean;
    write(input: Buffer): boolean;

    end(input: string, encoding?: BufferEncoding): void;
    end(input?: Buffer): void;
}

export const Iconv: Static;

export {};

Additional Details

  • Last updated: Thu, 23 Dec 2021 23:34:51 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.

3.0.4

6 months ago

3.0.3

7 months ago

3.0.2

8 months ago

3.0.1

2 years ago

3.0.0

3 years ago

2.1.16

7 years ago

2.1.15

8 years ago

2.1.14

8 years ago

2.1.13-alpha

8 years ago

2.1.12-alpha

8 years ago

2.1.11-alpha

8 years ago

2.1.10-alpha

8 years ago

2.1.9-alpha

8 years ago

2.1.8-alpha

8 years ago

2.1.3-alpha

8 years ago

2.1.2-alpha

8 years ago