@mintlify/common 1.0.526 → 1.0.527

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
+ declare const protocols: readonly ["http", "https", "ftp", "ftps", "file", "data", "mailto", "tel", "sms", "ws", "wss"];
2
+ type Protocol = (typeof protocols)[number];
3
+ export type AbsoluteUrl = `${Protocol}://${string}` | `${Protocol}:${string}`;
1
4
  /**
2
5
  * Check if a URL is absolute
3
6
  * @param url - The URL to check
4
7
  * @returns True if the URL is absolute, false otherwise
5
8
  */
6
- export declare const isAbsoluteUrl: (url?: string) => boolean;
9
+ export declare const isAbsoluteUrl: (url: unknown) => url is AbsoluteUrl;
10
+ export {};
@@ -1,3 +1,16 @@
1
+ const protocols = [
2
+ 'http',
3
+ 'https',
4
+ 'ftp',
5
+ 'ftps',
6
+ 'file',
7
+ 'data',
8
+ 'mailto',
9
+ 'tel',
10
+ 'sms',
11
+ 'ws',
12
+ 'wss',
13
+ ];
1
14
  /**
2
15
  * Check if a URL is absolute
3
16
  * @param url - The URL to check