mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
9 lines
163 B
TypeScript
9 lines
163 B
TypeScript
|
|
import merge from "utils-merge";
|
|
|
|
type Result = {a: string, b: number};
|
|
|
|
let result: Result;
|
|
|
|
result = merge<{a: string}, {b: number}, Result>({a: ''}, {b: 42});
|