TS2322: Type
CreateRouterInner<RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>, { ...; }>
is not assignable to type AnyRouter
Types of property _def are incompatible.
Type 'RouterDef<RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>, { ...; }, { ...; }>' is not assignable to type 'AnyRouterDef<AnyRootConfig, any>'.
Type 'RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>' is not assignable to type 'AnyRootConfig'.
Type any is not assignable to type never
TS2322: Type
CreateRouterInner<RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>, { ...; }>
is not assignable to type AnyRouter
Types of property _def are incompatible.
Type 'RouterDef<RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>, { ...; }, { ...; }>' is not assignable to type 'AnyRouterDef<AnyRootConfig, any>'.
Type 'RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>' is not assignable to type 'AnyRootConfig'.
Type any is not assignable to type never