@punks/backend-core 0.0.26 → 0.0.27
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,4 +1,4 @@
|
|
|
1
|
-
export declare const mapOrThrow: <
|
|
2
|
-
mapper: (
|
|
3
|
-
throw: (
|
|
4
|
-
}) =>
|
|
1
|
+
export declare const mapOrThrow: <T>({ mapper, throw: throwFn, }: {
|
|
2
|
+
mapper: () => T | undefined;
|
|
3
|
+
throw: () => void;
|
|
4
|
+
}) => T;
|
package/dist/index.d.ts
CHANGED
|
@@ -106,10 +106,10 @@ declare const pluralize: (word: string) => string;
|
|
|
106
106
|
|
|
107
107
|
declare function sleep(ms: number): Promise<unknown>;
|
|
108
108
|
|
|
109
|
-
declare const mapOrThrow: <
|
|
110
|
-
mapper: (
|
|
111
|
-
throw: (
|
|
112
|
-
}) =>
|
|
109
|
+
declare const mapOrThrow: <T>({ mapper, throw: throwFn, }: {
|
|
110
|
+
mapper: () => T | undefined;
|
|
111
|
+
throw: () => void;
|
|
112
|
+
}) => T;
|
|
113
113
|
|
|
114
114
|
declare const newUuid: () => string;
|
|
115
115
|
|