3.0.4 • Published 2 years ago

@types/iconv v3.0.4

Weekly downloads
2,647
License
MIT
Repository
github
Last release
2 years 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

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.16

8 years ago

2.1.15

9 years ago

2.1.14

9 years ago

2.1.13-alpha

9 years ago

2.1.12-alpha

9 years ago

2.1.11-alpha

9 years ago

2.1.10-alpha

9 years ago

2.1.9-alpha

9 years ago

2.1.8-alpha

9 years ago

2.1.3-alpha

9 years ago

2.1.2-alpha

9 years ago