Skip to content

Builder doesn't support union types well #89

@JBBianchi

Description

@JBBianchi

What happened:

startdefValidator().stateName('foo'); 
// Property 'stateName' does not exist on type 'Builder<Startdef>'.
//  Property 'stateName' does not exist on type '{ build: () => Startdef; } & string'.

What you expected to happen:
To work without TS complaining.

How to reproduce it:
See What happened

Anything else we need to know?:
Will be fixed in an upcoming PR

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions