0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
nodejs/typings/internalBinding/url.d.ts

13 lines
489 B
TypeScript
Raw Normal View History

import type { urlUpdateActions } from 'internal/url'
export interface URLBinding {
urlComponents: Uint32Array;
domainToASCII(input: string): string;
domainToUnicode(input: string): string;
canParse(input: string): boolean;
format(input: string, fragment?: boolean, unicode?: boolean, search?: boolean, auth?: boolean): string;
parse(input: string, base?: string): string | false;
update(input: string, actionType: typeof urlUpdateActions, value: string): string | false;
}