Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.48 KB

File metadata and controls

13 lines (8 loc) · 1.48 KB

Append to object medium #object-keys

by Andrey Krasovsky @bre30kra69cs

Take the Challenge    日本語

Implement a type that adds a new field to the interface. The type takes the three arguments. The output should be an object with the new field

For example

type Test = { id: '1' }
type Result = AppendToObject<Test, 'value', 4> // expected to be { id: '1', value: 4 }

Back Share your Solutions Check out Solutions