Type alias UUID

UUID: string & {
    __meta?: ["UUIDv4"];
}

UUID v4, as string, serialized as string in JSON, and binary in database. Use uuid() as handy initializer.

class Entity {
id: UUID = uuid();
}

Generated using TypeDoc