DefinitelyTyped/types/punycode/index.d.ts
2018-12-05 18:43:30 +03:00

17 lines
564 B
TypeScript

// Type definitions for punycode 2.1
// Project: https://mths.be/punycode
// Definitions by: Dmitry Guketlev <https://github.com/yavanosta>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function decode(input: string): string;
export function encode(input: string): string;
export function toUnicode(input: string): string;
export function toASCII(input: string): string;
export namespace ucs2 {
function decode(string: string): number[];
function encode(array: ReadonlyArray<number>): string;
}
export const version: string;