@types/punycode
Version:
TypeScript definitions for punycode
31 lines (23 loc) • 937 B
Markdown
# Installation
> `npm install --save @types/punycode`
# Summary
This package contains type definitions for punycode (https://mths.be/punycode).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/punycode.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/punycode/index.d.ts)
````ts
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: readonly number[]): string;
}
export const version: string;
````
### Additional Details
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Dependencies: none
# Credits
These definitions were written by [Dmitry Guketlev](https://github.com/yavanosta).