Sharing Enum
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?2 Replies