It would be such a great user experience if aliases didn't need to be manually set using .ts_alias on the type.
Ideally, this:
module Types
include Dry.Types()
extend Dry::Typescript
ts_export UUID = Types::String
ts_export Email = Types::String
ts_export User = Types::Hash.schema(id: UUID, email: Email)
end
... should export:
export type UUID = string;
export type Email = string;
export type User = {
id: UUID
email: Email
}
It would be such a great user experience if aliases didn't need to be manually set using
.ts_aliason the type.Ideally, this:
... should export: