Support for branded types in schema
Ouverte
enhancement
- Langage dominant
- TypeScript
- Étoiles
- 157
- Forks
- 7
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
We use brands extensively in our code to make it easy to distinguish between different types of integers. For example:
```
type Brand = K & { __brand: T };
export type CommunityId = Brand;
export type UserId = Brand;
```
It would be great if I could define this in my schema so that the columns in query results have the right type instead of having to be converted.
Thanks!
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.