feat: init
This commit is contained in:
22
node_modules/unenv/dist/runtime/node/internal/url/url.d.mts
generated
vendored
Normal file
22
node_modules/unenv/dist/runtime/node/internal/url/url.d.mts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Protocols that can allow "unsafe" and "unwise" chars.
|
||||
export declare const unsafeProtocol: unknown;
|
||||
// Protocols that never have a hostname.
|
||||
export declare const hostlessProtocol: unknown;
|
||||
// Protocols that always contain a // bit.
|
||||
export declare const slashedProtocol: unknown;
|
||||
export declare function pathToFileURL(filepath: string, options?: {
|
||||
windows?: boolean;
|
||||
});
|
||||
export declare function fileURLToPath(path: string | URL, options?: {
|
||||
windows?: boolean;
|
||||
});
|
||||
/**
|
||||
* Utility function that converts a URL object into an ordinary options object
|
||||
* as expected by the `http.request` and `https.request` APIs.
|
||||
* @param {URL} url
|
||||
* @returns {Record<string, unknown>}
|
||||
*/
|
||||
export declare function urlToHttpOptions(url: URL): {
|
||||
__proto__: null;
|
||||
path: string;
|
||||
};
|
||||
Reference in New Issue
Block a user