summaryrefslogtreecommitdiff
path: root/typings
diff options
context:
space:
mode:
authorYagiz Nizipli <yagiz@nizipli.com>2023-03-31 09:03:06 -0400
committerRich Trott <rtrott@gmail.com>2023-04-05 09:05:27 -0700
commit3867641c1430ae78786243b47dcb2e779f54092c (patch)
treea88b9eb5f6f5959cdb4e9a1b9b16e4988b9355b8 /typings
parent26a967f6d0d111d72da6ea34634854e2ba8c517f (diff)
downloadnode-new-3867641c1430ae78786243b47dcb2e779f54092c.tar.gz
url: use ada::url_aggregator for parsing urls
PR-URL: https://github.com/nodejs/node/pull/47339 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'typings')
-rw-r--r--typings/internalBinding/url.d.ts12
1 files changed, 12 insertions, 0 deletions
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;
+};