discord-questions.trpc.io/m/1353495044648206477

Preview meta tags from the discord-questions.trpc.io website.

Linked Hostnames

4

Thumbnail

Search Engine Appearance

Google

https://discord-questions.trpc.io/m/1353495044648206477

v11 types ProcedureBuilder & MiddlewareBuilder - tRPC

You used to be able to import these types directly from `@trpc/server`. With v11 you can only import them via `unstable-core-do-not-import`. I have some properties on a class that should hold a `t.middleware` and a `t.procedure`. What's the recommended way to type my `Middleware` and `Procedure` in v11? ```ts type Middleware = ? type Procedure = ? const t = initTRPC.create() class MyClass { private middleware: Middleware = t.middleware(({ next }) => next()) private proc: Procedure = t.procedure public procedure(procedure: Procedure) { this.proc = procedure return this } public use(middleware: Middleware) { this.middleware = middleware return this } ```



Bing

v11 types ProcedureBuilder & MiddlewareBuilder - tRPC

https://discord-questions.trpc.io/m/1353495044648206477

You used to be able to import these types directly from `@trpc/server`. With v11 you can only import them via `unstable-core-do-not-import`. I have some properties on a class that should hold a `t.middleware` and a `t.procedure`. What's the recommended way to type my `Middleware` and `Procedure` in v11? ```ts type Middleware = ? type Procedure = ? const t = initTRPC.create() class MyClass { private middleware: Middleware = t.middleware(({ next }) => next()) private proc: Procedure = t.procedure public procedure(procedure: Procedure) { this.proc = procedure return this } public use(middleware: Middleware) { this.middleware = middleware return this } ```



DuckDuckGo

https://discord-questions.trpc.io/m/1353495044648206477

v11 types ProcedureBuilder & MiddlewareBuilder - tRPC

You used to be able to import these types directly from `@trpc/server`. With v11 you can only import them via `unstable-core-do-not-import`. I have some properties on a class that should hold a `t.middleware` and a `t.procedure`. What's the recommended way to type my `Middleware` and `Procedure` in v11? ```ts type Middleware = ? type Procedure = ? const t = initTRPC.create() class MyClass { private middleware: Middleware = t.middleware(({ next }) => next()) private proc: Procedure = t.procedure public procedure(procedure: Procedure) { this.proc = procedure return this } public use(middleware: Middleware) { this.middleware = middleware return this } ```

  • General Meta Tags

    6
    • title
      v11 types ProcedureBuilder & MiddlewareBuilder - tRPC
    • charset
      utf-8
    • viewport
      width=device-width, initial-scale=1
    • next-size-adjust
    • description
      You used to be able to import these types directly from `@trpc/server`. With v11 you can only import them via `unstable-core-do-not-import`. I have some properties on a class that should hold a `t.middleware` and a `t.procedure`. What's the recommended way to type my `Middleware` and `Procedure` in v11? ```ts type Middleware = ? type Procedure = ? const t = initTRPC.create() class MyClass { private middleware: Middleware = t.middleware(({ next }) => next()) private proc: Procedure = t.procedure public procedure(procedure: Procedure) { this.proc = procedure return this } public use(middleware: Middleware) { this.middleware = middleware return this } ```
  • Open Graph Meta Tags

    3
    • og:title
      v11 types ProcedureBuilder & MiddlewareBuilder - tRPC
    • og:description
      You used to be able to import these types directly from `@trpc/server`. With v11 you can only import them via `unstable-core-do-not-import`. I have some properties on a class that should hold a `t.middleware` and a `t.procedure`. What's the recommended way to type my `Middleware` and `Procedure` in v11? ```ts type Middleware = ? type Procedure = ? const t = initTRPC.create() class MyClass { private middleware: Middleware = t.middleware(({ next }) => next()) private proc: Procedure = t.procedure public procedure(procedure: Procedure) { this.proc = procedure return this } public use(middleware: Middleware) { this.middleware = middleware return this } ```
    • og:image
      https://discord-questions.trpc.io/og/post?id=1353495044648206477
  • Twitter Meta Tags

    4
    • twitter:card
      summary_large_image
    • twitter:title
      v11 types ProcedureBuilder & MiddlewareBuilder - tRPC
    • twitter:description
      You used to be able to import these types directly from `@trpc/server`. With v11 you can only import them via `unstable-core-do-not-import`. I have some properties on a class that should hold a `t.middleware` and a `t.procedure`. What's the recommended way to type my `Middleware` and `Procedure` in v11? ```ts type Middleware = ? type Procedure = ? const t = initTRPC.create() class MyClass { private middleware: Middleware = t.middleware(({ next }) => next()) private proc: Procedure = t.procedure public procedure(procedure: Procedure) { this.proc = procedure return this } public use(middleware: Middleware) { this.middleware = middleware return this } ```
    • twitter:image
      https://discord-questions.trpc.io/og/post?id=1353495044648206477
  • Link Tags

    8
    • canonical
      https://discord-questions.trpc.io/m/1353495044648206477
    • icon
      https://cdn.answeroverflow.com/867764511159091230/6af104c7f0f39a12fcd55bd7bd28928f/icon.png
    • preload
      https://www.answeroverflow.com/_next/static/media/4f05ba3a6752a328-s.p.woff2
    • preload
      https://www.answeroverflow.com/_next/static/media/9cf9c6e84ed13b5e-s.p.woff2
    • preload
      /discord/2.png

Links

6