Skip to main content
Version: 10.x

router()

Deprecated

Signature

ts
router<TContext, TMeta>(): Router<TContext, TContext, TMeta, {}, {}, {}, DefaultErrorShape, DefaultDataTransformer>;
ts
router<TContext, TMeta>(): Router<TContext, TContext, TMeta, {}, {}, {}, DefaultErrorShape, DefaultDataTransformer>;

Type parameters

  • TContext extends Record<string, any> = {}
  • TMeta extends Record<string, any> = {}

Returns

Router<TContext, TContext, TMeta, {}, {}, {}, DefaultErrorShape, DefaultDataTransformer>

Defined in: packages/server/src/deprecated/router.ts:931