@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: <TInput, TOutput>(input: TInput, { mapper, throw: throwFn, }: {
2
- mapper: (input: TInput) => TOutput | undefined;
3
- throw: (input: TInput) => void;
4
- }) => TOutput;
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: <TInput, TOutput>(input: TInput, { mapper, throw: throwFn, }: {
110
- mapper: (input: TInput) => TOutput | undefined;
111
- throw: (input: TInput) => void;
112
- }) => TOutput;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-core",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "WebPunks Backend Core",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",