planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

View File

@@ -0,0 +1 @@
export declare function capitalize(str: string): string;

View File

@@ -0,0 +1 @@
export declare function copyWithStructuralSharing<T>(oldObj: any, newObj: T): T;

View File

@@ -0,0 +1,6 @@
/**
* Alternative to `Array.flat(1)`
* @param arr An array like [1,2,3,[1,2]]
* @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
*/
export declare const flatten: (arr: readonly any[]) => never[];

View File

@@ -0,0 +1,8 @@
export * from './isAbsoluteUrl';
export * from './isValidUrl';
export * from './joinUrls';
export * from './flatten';
export * from './capitalize';
export * from './isOnline';
export * from './isDocumentVisible';
export * from './copyWithStructuralSharing';

View File

@@ -0,0 +1,6 @@
/**
* If either :// or // is present consider it to be an absolute url
*
* @param url string
*/
export declare function isAbsoluteUrl(url: string): boolean;

View File

@@ -0,0 +1,5 @@
/**
* Assumes true for a non-browser env, otherwise makes a best effort
* @link https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState
*/
export declare function isDocumentVisible(): boolean;

View File

@@ -0,0 +1 @@
export declare function isNotNullish<T>(v: T | null | undefined): v is T;

View File

@@ -0,0 +1,5 @@
/**
* Assumes a browser is online if `undefined`, otherwise makes a best effort
* @link https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine
*/
export declare function isOnline(): boolean;

View File

@@ -0,0 +1 @@
export declare function isValidUrl(string: string): boolean;

View File

@@ -0,0 +1 @@
export declare function joinUrls(base: string | undefined, url: string | undefined): string;