discord-questions.trpc.io/m/1087702377060114462

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

Linked Hostnames

4

Thumbnail

Search Engine Appearance

Google

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

Sharing Enum - tRPC

On the backend: I have colocated files with types and procedures (index.ts - procedures, schemas.ts - zod/ts types). If I define an Enum on the backend in the schemas.ts and would like to use it on the client(frontend) does it meat that importing that enum would boundle this file in my client? With type I can just do `import type { SomeType } from '../backend/schemas'` and that would be stripped If I understand correctly. But what about enum?



Bing

Sharing Enum - tRPC

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

On the backend: I have colocated files with types and procedures (index.ts - procedures, schemas.ts - zod/ts types). If I define an Enum on the backend in the schemas.ts and would like to use it on the client(frontend) does it meat that importing that enum would boundle this file in my client? With type I can just do `import type { SomeType } from '../backend/schemas'` and that would be stripped If I understand correctly. But what about enum?



DuckDuckGo

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

Sharing Enum - tRPC

On the backend: I have colocated files with types and procedures (index.ts - procedures, schemas.ts - zod/ts types). If I define an Enum on the backend in the schemas.ts and would like to use it on the client(frontend) does it meat that importing that enum would boundle this file in my client? With type I can just do `import type { SomeType } from '../backend/schemas'` and that would be stripped If I understand correctly. But what about enum?

  • General Meta Tags

    6
    • title
      Sharing Enum - tRPC
    • charset
      utf-8
    • viewport
      width=device-width, initial-scale=1
    • next-size-adjust
    • description
      On the backend: I have colocated files with types and procedures (index.ts - procedures, schemas.ts - zod/ts types). If I define an Enum on the backend in the schemas.ts and would like to use it on the client(frontend) does it meat that importing that enum would boundle this file in my client? With type I can just do `import type { SomeType } from '../backend/schemas'` and that would be stripped If I understand correctly. But what about enum?
  • Open Graph Meta Tags

    3
    • og:title
      Sharing Enum - tRPC
    • og:description
      On the backend: I have colocated files with types and procedures (index.ts - procedures, schemas.ts - zod/ts types). If I define an Enum on the backend in the schemas.ts and would like to use it on the client(frontend) does it meat that importing that enum would boundle this file in my client? With type I can just do `import type { SomeType } from '../backend/schemas'` and that would be stripped If I understand correctly. But what about enum?
    • og:image
      https://discord-questions.trpc.io/og/post?id=1087702377060114462
  • Twitter Meta Tags

    4
    • twitter:card
      summary_large_image
    • twitter:title
      Sharing Enum - tRPC
    • twitter:description
      On the backend: I have colocated files with types and procedures (index.ts - procedures, schemas.ts - zod/ts types). If I define an Enum on the backend in the schemas.ts and would like to use it on the client(frontend) does it meat that importing that enum would boundle this file in my client? With type I can just do `import type { SomeType } from '../backend/schemas'` and that would be stripped If I understand correctly. But what about enum?
    • twitter:image
      https://discord-questions.trpc.io/og/post?id=1087702377060114462
  • Link Tags

    9
    • canonical
      https://discord-questions.trpc.io/m/1087702377060114462
    • 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

7