Skip to content

Latest commit

 

History

History

00527-medium-append-to-object

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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