questions/00599-medium-merge/README.ja.md
2 つの型をマージして新しい型を作ります。2 つ目に指定した型のキーは 1 つ目の型のキーを上書きします。
例えば
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}
<a href="../../README.ja.md" target="_blank"></a> <a href="https://tsch.js.org/599/answer/ja" target="_blank"></a> <a href="https://tsch.js.org/599/solutions" target="_blank"></a> <!--info-footer-end-->