@orpc/shared 0.19.0 → 0.21.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.
package/dist/index.js CHANGED
@@ -121,8 +121,8 @@ function findDeepMatches(check, payload, segments = [], maps = [], values = [])
121
121
  }
122
122
 
123
123
  // src/proxy.ts
124
- function createCallableObject(obj, func) {
125
- const proxy = new Proxy(func, {
124
+ function createCallableObject(obj, handler) {
125
+ const proxy = new Proxy(handler, {
126
126
  has(target, key) {
127
127
  return Reflect.has(obj, key) || Reflect.has(target, key);
128
128
  },
@@ -1,3 +1,3 @@
1
1
  import type { AnyFunction } from './function';
2
- export declare function createCallableObject<TObject extends object, TFunc extends AnyFunction>(obj: TObject, func: TFunc): TObject & TFunc;
2
+ export declare function createCallableObject<TObject extends object, THandler extends AnyFunction>(obj: TObject, handler: THandler): TObject & THandler;
3
3
  //# sourceMappingURL=proxy.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/shared",
3
3
  "type": "module",
4
- "version": "0.19.0",
4
+ "version": "0.21.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {