@swan-io/lake 13.4.15 → 13.5.0
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/package.json +1 -1
- package/src/utils/function.d.ts +2 -1
package/package.json
CHANGED
package/src/utils/function.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GuardP } from "ts-pattern/types";
|
|
1
2
|
export declare const identity: <T>(value: T) => T;
|
|
2
3
|
export declare const noop: () => void;
|
|
3
4
|
export declare const stubFalse: () => false;
|
|
@@ -6,6 +7,6 @@ export declare const deriveUnion: <T extends PropertyKey>(object: Record<T, true
|
|
|
6
7
|
array: T[];
|
|
7
8
|
set: Set<T>;
|
|
8
9
|
is: (value: unknown) => value is T;
|
|
9
|
-
P:
|
|
10
|
+
P: GuardP<unknown, T>;
|
|
10
11
|
};
|
|
11
12
|
export declare const memoize: <Input extends Array<unknown>, Output>(func: (...input: Input) => Output, getCacheKey: (...input: Input) => string) => ((...input: Input) => Output);
|