From 3867641c1430ae78786243b47dcb2e779f54092c Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Fri, 31 Mar 2023 09:03:06 -0400 Subject: url: use ada::url_aggregator for parsing urls PR-URL: https://github.com/nodejs/node/pull/47339 Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Rich Trott --- typings/internalBinding/url.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 typings/internalBinding/url.d.ts (limited to 'typings') diff --git a/typings/internalBinding/url.d.ts b/typings/internalBinding/url.d.ts new file mode 100644 index 0000000000..54d1cb1f93 --- /dev/null +++ b/typings/internalBinding/url.d.ts @@ -0,0 +1,12 @@ +import type { urlUpdateActions } from 'internal/url' + +declare function InternalBinding(binding: 'url'): { + urlComponents: Uint32Array; + + domainToASCII(input: string): string; + domainToUnicode(input: string): string; + canParse(input: string, base?: 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; +}; -- cgit v1.2.1