@cripty2001/utils 0.0.191 → 0.0.193
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.
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -86,4 +86,5 @@ export declare function getEnv(key: string, defaultValue?: string): string;
|
|
|
86
86
|
export declare const CURRENT_TS_MS: () => Whispr<number>;
|
|
87
87
|
export declare function timediff2HumanReadable(diffMs: number): string;
|
|
88
88
|
export declare function fn2promise<T>(fn: () => T | Promise<T>): Promise<T>;
|
|
89
|
+
export type SafeApplyCb<T> = (draft: T) => T | void;
|
|
89
90
|
export declare function safeApply<T>(updater: (draft: T) => T | void, incoming: T): T;
|
package/package.json
CHANGED