为什么TypeScript不抱怨Object.create?
type Foo = {
x: number;
};
function g(): Foo {
return {}; // Fails type-check
// Property 'x' is missing in type '{}' but required in type 'Foo'.
}
function f(): Foo {
return Object.create({}); // Passes!
}
function h(): Foo {
return Object.c...