@orpc/shared 0.0.0-next.a8e421c → 0.0.0-next.aa51bbc

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/README.md CHANGED
@@ -72,6 +72,14 @@ You can find the full documentation [here](https://orpc.unnoq.com).
72
72
 
73
73
  Provides shared utilities for oRPC packages.
74
74
 
75
+ ## Sponsors
76
+
77
+ <p align="center">
78
+ <a href="https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg">
79
+ <img src='https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg'/>
80
+ </a>
81
+ </p>
82
+
75
83
  ## License
76
84
 
77
85
  Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information.
package/dist/index.d.mts CHANGED
@@ -77,8 +77,9 @@ declare function clone<T>(value: T): T;
77
77
 
78
78
  type MaybeOptionalOptions<TOptions> = Record<never, never> extends TOptions ? [options?: TOptions] : [options: TOptions];
79
79
  type SetOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
80
+ type IntersectPick<T, U> = Pick<T, keyof T & keyof U>;
80
81
 
81
82
  type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => Promisable<T>);
82
83
  declare function value<T, TArgs extends any[]>(value: Value<T, TArgs>, ...args: NoInfer<TArgs>): Promise<T extends Value<infer U, any> ? U : never>;
83
84
 
84
- export { type AnyFunction, type InterceptableOptions, type Interceptor, type InterceptorOptions, type MaybeOptionalOptions, type OmitChainMethodDeep, type OnFinishState, type Segment, type SetOptional, type Value, clone, findDeepMatches, intercept, isAsyncIteratorObject, isObject, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, stringifyJSON, toError, value };
85
+ export { type AnyFunction, type InterceptableOptions, type Interceptor, type InterceptorOptions, type IntersectPick, type MaybeOptionalOptions, type OmitChainMethodDeep, type OnFinishState, type Segment, type SetOptional, type Value, clone, findDeepMatches, intercept, isAsyncIteratorObject, isObject, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, stringifyJSON, toError, value };
package/dist/index.d.ts CHANGED
@@ -77,8 +77,9 @@ declare function clone<T>(value: T): T;
77
77
 
78
78
  type MaybeOptionalOptions<TOptions> = Record<never, never> extends TOptions ? [options?: TOptions] : [options: TOptions];
79
79
  type SetOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
80
+ type IntersectPick<T, U> = Pick<T, keyof T & keyof U>;
80
81
 
81
82
  type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => Promisable<T>);
82
83
  declare function value<T, TArgs extends any[]>(value: Value<T, TArgs>, ...args: NoInfer<TArgs>): Promise<T extends Value<infer U, any> ? U : never>;
83
84
 
84
- export { type AnyFunction, type InterceptableOptions, type Interceptor, type InterceptorOptions, type MaybeOptionalOptions, type OmitChainMethodDeep, type OnFinishState, type Segment, type SetOptional, type Value, clone, findDeepMatches, intercept, isAsyncIteratorObject, isObject, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, stringifyJSON, toError, value };
85
+ export { type AnyFunction, type InterceptableOptions, type Interceptor, type InterceptorOptions, type IntersectPick, type MaybeOptionalOptions, type OmitChainMethodDeep, type OnFinishState, type Segment, type SetOptional, type Value, clone, findDeepMatches, intercept, isAsyncIteratorObject, isObject, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, stringifyJSON, toError, value };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/shared",
3
3
  "type": "module",
4
- "version": "0.0.0-next.a8e421c",
4
+ "version": "0.0.0-next.aa51bbc",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {