mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
564 B
TypeScript
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;
|