UNPKG

502 BTypeScriptView Raw
1// Type definitions for whatwg-encoding 1.0
2// Project: https://github.com/jsdom/whatwg-encoding
3// Definitions by: fengkx <https://github.com/fengkx>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference types="node" />
7export function decode(buffer: Buffer, fallbackEncodingName: string): string;
8export function labelToName(label: string): string | null;
9export function isSupported(name: string): boolean;
10export function getBOMEncoding(buffer: Buffer): string | null;