Interface: UnionBuilder
Defined in: packages/ir/src/builder.ts:59
Type-setters shared by UnionBuilder and TypeAliasBuilder.
Extends
Methods
array()
array(build): this;
Defined in: packages/ir/src/builder.ts:55
Parameters
| Parameter | Type |
|---|---|
build | (element) => void |
Returns
this
Inherited from
discriminator()
discriminator(propertyName, mapping?): this;
Defined in: packages/ir/src/builder.ts:61
mapping values must name a ref variant of this union.
Parameters
| Parameter | Type |
|---|---|
propertyName | string |
mapping? | Record<string, string> |
Returns
this
enum()
enum(ref): this;
Defined in: packages/ir/src/builder.ts:51
Parameters
| Parameter | Type |
|---|---|
ref | string |
Returns
this
Inherited from
map()
map(build): this;
Defined in: packages/ir/src/builder.ts:54
Parameters
| Parameter | Type |
|---|---|
build | (value) => void |
Returns
this
Inherited from
ref()
ref(name): this;
Defined in: packages/ir/src/builder.ts:52
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
this
Inherited from
scalar()
scalar(t): this;
Defined in: packages/ir/src/builder.ts:50
Parameters
| Parameter | Type |
|---|---|
t | | "string" | "bigint" | "boolean" | "int" | "float" | "decimal" | "date" | "datetime" | "uuid" | "bytes" | "json" |
Returns
this
Inherited from
union()
union(build): this;
Defined in: packages/ir/src/builder.ts:53
Parameters
| Parameter | Type |
|---|---|
build | (u) => void |
Returns
this
Inherited from
unknown()
unknown(hint?): this;
Defined in: packages/ir/src/builder.ts:56
Parameters
| Parameter | Type |
|---|---|
hint? | string |
Returns
this