mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-01 05:00:13 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
20
package/@stackframe/stack-shared/dist/utils/urls.d.ts
vendored
Normal file
20
package/@stackframe/stack-shared/dist/utils/urls.d.ts
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
declare function createUrlIfValid(...args: ConstructorParameters<typeof URL>): URL | null;
|
||||
declare function isValidUrl(url: string): boolean;
|
||||
declare function isValidHostname(hostname: string): boolean;
|
||||
declare function isLocalhost(urlOrString: string | URL): boolean;
|
||||
declare function isRelative(url: string): boolean;
|
||||
declare function getRelativePart(url: URL): string;
|
||||
/**
|
||||
* A template literal tag that returns a URL.
|
||||
*
|
||||
* Any values passed are encoded.
|
||||
*/
|
||||
declare function url(strings: TemplateStringsArray | readonly string[], ...values: (string | number | boolean)[]): URL;
|
||||
/**
|
||||
* A template literal tag that returns a URL string.
|
||||
*
|
||||
* Any values passed are encoded.
|
||||
*/
|
||||
declare function urlString(strings: TemplateStringsArray | readonly string[], ...values: (string | number | boolean)[]): string;
|
||||
|
||||
export { createUrlIfValid, getRelativePart, isLocalhost, isRelative, isValidHostname, isValidUrl, url, urlString };
|
||||
Loading…
Add table
Add a link
Reference in a new issue