Skip to content

Latest commit

 

History

History
 
 

00599-medium-merge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Merge medium #object

by ZYSzys @ZYSzys

Take the Challenge    简体中文 日本語

Merge two types into a new type. Keys of the second type overrides keys of the first type.

For example

type foo = {
  name: string;
  age: string;
}
type coo = {
  age: number;
  sex: string
}

type Result = Merge<foo,coo>; // expected to be {name: string, age: number, sex: string}

Back Share your Solutions Check out Solutions