DefinitelyTyped/types/node/punycode.d.ts
2019-01-28 12:12:28 -08:00

13 lines
375 B
TypeScript

declare module "punycode" {
function decode(string: string): string;
function encode(string: string): string;
function toUnicode(domain: string): string;
function toASCII(domain: string): string;
const ucs2: ucs2;
interface ucs2 {
decode(string: string): number[];
encode(codePoints: number[]): string;
}
const version: any;
}