Naming Tips & Gotchas
- Constants include enumerations in the form of string literal union types, such as
type Color = "RED" | "BLUE". - Don’t prefix types with
T(e.g.,TUser) unless there’s a naming conflict. - When working with zod schemas, use the same name for the inferred type as the schema. For example, if the schema is named
userSchema, the inferred type should beUserSchema.