2023-09-08

Using JavaScript

to create and object that will be assigned default values optional values aren't assigned.

Create an interface like the following:

TYPESCRIPT

Create a defaults object like the following:

TYPESCRIPT

Then create a couple of overrides:

TYPESCRIPT

Then you can use these to create a combined set of inputs using Javascript's

language feature:

TYPESCRIPT

will produce the following result type:

TYPESCRIPT
© Bounded Infinity 2025