DefinitelyTyped/types/whatwg-encoding/index.d.ts
fengkx 548030f4f9
types: add types of whatwg-encoding (#43328)
* types: add types of whatwg-encoding

* rename to tests
2020-03-31 16:06:17 -07:00

11 lines
502 B
TypeScript

// Type definitions for whatwg-encoding 1.0
// Project: https://github.com/jsdom/whatwg-encoding
// Definitions by: fengkx <https://github.com/fengkx>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
export function decode(buffer: Buffer, fallbackEncodingName: string): string;
export function labelToName(label: string): string | null;
export function isSupported(name: string): boolean;
export function getBOMEncoding(buffer: Buffer): string | null;