You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(contract, server): has no properties in common with type ts-problem (#247)
In previous attempt: https://github.com/unnoq/orpc/pull/244 we forgot
cover some cases
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Refactor**
- Updated type definitions for configuration and middleware interfaces
to enhance type safety.
- Standardized context handling across core modules to ensure consistent
use of the initial context.
- Resolved underlying compatibility issues, improving overall stability
without impacting runtime functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
): DecoratedMiddleware<TCurrentContext,UOutContext,TInput,TOutput,ORPCErrorConstructorMap<any>,TMeta>{// ORPCErrorConstructorMap<any> ensures middleware can used in any procedure
): DecoratedMiddleware<TInitialContext,UOutContext,TInput,TOutput,ORPCErrorConstructorMap<any>,TMeta>{// ORPCErrorConstructorMap<any> ensures middleware can used in any procedure
): DecoratedMiddleware<TCurrentContext,UOutContext,TInput,TOutput,ORPCErrorConstructorMap<any>,InferContractRouterMeta<T>>// ORPCErrorConstructorMap<any> ensures middleware can used in any procedure
33
+
): DecoratedMiddleware<TInitialContext,UOutContext,TInput,TOutput,ORPCErrorConstructorMap<any>,InferContractRouterMeta<T>>// ORPCErrorConstructorMap<any> ensures middleware can used in any procedure
$context<UextendsContext>(): Implementer<TContract,U&Record<never,never>,U>// We need `& Record<never, never>` to deal with `has no properties in common with type` error
0 commit comments