@types/text-encoding-utf-8
TypeScript definitions for text-encoding-utf-8
Last updated 8 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/text-encoding-utf-8 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/text-encoding-utf-8

Summary

This package contains type definitions for text-encoding-utf-8 (https://github.com/arv/text-encoding-utf-8).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-encoding-utf-8.

index.d.ts

// Type definitions for text-encoding-utf-8 1.0
// Project: https://github.com/arv/text-encoding-utf-8
// Definitions by: Paul Taylor <https://github.com/trxcllnt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export namespace TextEncoding {
    interface TextDecoderOptions {
        fatal?: boolean | undefined;
        ignoreBOM?: boolean | undefined;
    }

    interface TextDecodeOptions {
        stream?: boolean | undefined;
    }

    interface TextEncoderOptions {
        NONSTANDARD_allowLegacyEncoding?: boolean | undefined;
    }

    interface TextDecoder {
        encoding: string;
        fatal: boolean;
        ignoreBOM: boolean;
        decode(input?: ArrayBuffer | ArrayBufferView, options?: TextDecodeOptions): string;
    }

    interface TextEncoder {
        encoding: string;
        encode(input?: string, options?: TextEncodeOptions): Uint8Array;
    }

    interface TextEncodeOptions {
        stream?: boolean | undefined;
    }

    interface TextEncoderStatic {
        (utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
        new (utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
    }

    interface TextDecoderStatic {
        (label?: string, options?: TextDecoderOptions): TextDecoder;
        new (label?: string, options?: TextDecoderOptions): TextDecoder;
    }

    interface TextEncodingStatic {
        TextEncoder: TextEncoderStatic;
        TextDecoder: TextDecoderStatic;
    }
}

export const TextDecoder: TextEncoding.TextDecoderStatic;

export const TextEncoder: TextEncoding.TextEncoderStatic;

export const TextEncoding: TextEncoding.TextEncodingStatic;

export as namespace TextEncoding;

Additional Details

  • Last updated: Fri, 02 Jul 2021 21:32:20 GMT
  • Dependencies: none
  • Global values: TextEncoding

Credits

These definitions were written by Paul Taylor.

Current Tags

  • 1.0.2                                ...           latest (5 years ago)
  • 1.0.1                                ...           ts2.0 (8 years ago)
  • 1.0.1                                ...           ts2.1 (8 years ago)
  • 1.0.1                                ...           ts2.2 (8 years ago)
  • 1.0.1                                ...           ts2.3 (8 years ago)
  • 1.0.1                                ...           ts2.4 (8 years ago)
  • 1.0.1                                ...           ts2.5 (8 years ago)
  • 1.0.1                                ...           ts2.6 (8 years ago)
  • 1.0.1                                ...           ts2.7 (8 years ago)
  • 1.0.1                                ...           ts2.8 (8 years ago)
  • 1.0.1                                ...           ts2.9 (8 years ago)
  • 1.0.1                                ...           ts3.0 (8 years ago)
  • 1.0.1                                ...           ts3.1 (8 years ago)
  • 1.0.1                                ...           ts3.2 (8 years ago)
  • 1.0.1                                ...           ts3.3 (8 years ago)
  • 1.0.1                                ...           ts3.4 (8 years ago)
  • 1.0.1                                ...           ts3.5 (8 years ago)
  • 1.0.2                                ...           ts3.6 (5 years ago)
  • 1.0.2                                ...           ts3.7 (5 years ago)
  • 1.0.2                                ...           ts3.8 (5 years ago)
  • 1.0.2                                ...           ts3.9 (5 years ago)
  • 1.0.2                                ...           ts4.0 (5 years ago)
  • 1.0.2                                ...           ts4.1 (5 years ago)
  • 1.0.2                                ...           ts4.2 (5 years ago)
  • 1.0.2                                ...           ts4.3 (5 years ago)
  • 1.0.2                                ...           ts4.4 (5 years ago)
  • 1.0.2                                ...           ts4.5 (5 years ago)
  • 1.0.2                                ...           ts4.6 (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |