const x = {} as { foo: number }; // This code type-checks, but fails at runtime. x.foo;. Both of these syntax features allow a developer to ...
確定! 回上一頁