bootpress 7.1.0 → 7.1.1

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.
@@ -30,7 +30,7 @@ type TypedSchema<T> = {
30
30
  : (T[key] extends ValidTypeKeys ? ValOf<T[key]> : T[key] extends ArraySchema ? TypedSchema<T[key][0]>[] : TypedSchema<T[key]>)
31
31
  }
32
32
 
33
- export function getOrThrow<T, E extends HttpError>(data: T, error: E): T;
33
+ export function getOrThrow<T, K extends NonNullable<T>, E extends HttpError>(data: T, error: E): K;
34
34
  export function getOrElse<T, E>(data: T, defaultValue: E): E extends NonNullable<infer T> ? E : T | E;
35
35
  export function schema<T extends JsSchema>(schema: T): T;
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootpress",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "REST service methods for express",
5
5
  "main": "index.js",
6
6
  "repository": {