Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.75 KB

File metadata and controls

13 lines (8 loc) · 1.75 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