@orpc/shared 0.14.0 → 0.15.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.
@@ -0,0 +1,2 @@
1
+ export type AnyFunction = (...args: any[]) => any;
2
+ //# sourceMappingURL=function.d.ts.map
@@ -20,7 +20,7 @@ export type OnErrorState<TInput> = {
20
20
  export interface BaseHookMeta<TOutput> {
21
21
  next: () => Promise<TOutput>;
22
22
  }
23
- export interface Hooks<TInput, TOutput, TContext, TMeta extends (Record<string, unknown> & {
23
+ export interface Hooks<TInput, TOutput, TContext, TMeta extends (Record<string, any> & {
24
24
  next?: never;
25
25
  }) | undefined> {
26
26
  execute?: Arrayable<(input: TInput, context: TContext, meta: (TMeta extends undefined ? unknown : TMeta) & BaseHookMeta<TOutput>) => Promise<TOutput>>;
@@ -1,3 +1,4 @@
1
+ export * from './function';
1
2
  export * from './hook';
2
3
  export * from './json';
3
4
  export * from './object';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/shared",
3
3
  "type": "module",
4
- "version": "0.14.0",
4
+ "version": "0.15.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "is-what": "^5.0.2",
38
38
  "radash": "^12.1.0",
39
39
  "type-fest": "^4.26.1",
40
- "zod": "^3.23.8"
40
+ "zod": "^3.24.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsup --clean --sourcemap --entry.index=src/index.ts --entry.error=src/error.ts --format=esm --onSuccess='tsc -b --noCheck'",