Installation
npm install --save @types/tr46
Summary
This package contains type definitions for tr46 (https://github.com/jsdom/tr46).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46.
export function toASCII(
domainName: string,
options?: ToASCIIOptions,
): string | null;
export function toUnicode(
domainName: string,
options?: Options,
): { domain: string; error: boolean };
export interface Options {
checkBidi?: boolean | undefined;
checkHyphens?: boolean | undefined;
checkJoiners?: boolean | undefined;
ignoreInvalidPunycode?: boolean | undefined;
transitionalProcessing?: boolean | undefined;
useSTD3ASCIIRules?: boolean | undefined;
}
export interface ToASCIIOptions extends Options {
verifyDNSLength?: boolean | undefined;
}
Additional Details
- Last updated: Wed, 29 Jan 2025 02:01:16 GMT
- Dependencies: none
Credits
These definitions were written by BendingBender.