Full refactor to Typescript
This commit is contained in:
+1
-2
@@ -2,10 +2,9 @@
|
||||
// Common
|
||||
//
|
||||
|
||||
export type CommonProps = 'id' | 'createdAt'
|
||||
export type MetadataProps = 'id' | 'createdAt'
|
||||
|
||||
type Opaque<T, K, L extends string = 'opaque'> = T & { _: K; __: L }
|
||||
|
||||
type Id<T> = Opaque<string, T, 'id'>
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user