@fishka/express 0.9.15 → 0.9.16

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.
@@ -5,7 +5,7 @@ export type TypedValidatorMap = Record<string, TypeValidator<unknown>>;
5
5
  /** Infer validated types from validator map */
6
6
  export type InferValidated<T extends TypedValidatorMap | undefined> = T extends TypedValidatorMap ? {
7
7
  [K in keyof T]: ReturnType<T[K]>;
8
- } : Record<string, never>;
8
+ } : Record<string, string>;
9
9
  export declare class HttpError extends Error {
10
10
  readonly status: number;
11
11
  readonly details?: Record<string, unknown> | undefined;
@@ -5,7 +5,7 @@ export type TypedValidatorMap = Record<string, TypeValidator<unknown>>;
5
5
  /** Infer validated types from validator map */
6
6
  export type InferValidated<T extends TypedValidatorMap | undefined> = T extends TypedValidatorMap ? {
7
7
  [K in keyof T]: ReturnType<T[K]>;
8
- } : Record<string, never>;
8
+ } : Record<string, string>;
9
9
  export declare class HttpError extends Error {
10
10
  readonly status: number;
11
11
  readonly details?: Record<string, unknown> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishka/express",
3
- "version": "0.9.15",
3
+ "version": "0.9.16",
4
4
  "description": "Express.js extension with built-in validation, and type safety",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",