オブジェクトのconstructor
フィールドに構造体署名がないのはなぜですか?Typescript:コンストラクタフィールドに構造体署名がありません
class X {
}
const x = new X
// disallowed:
// const y = new x.constructor
// cast to any just to see runtime behaviour:
const z = new (x.constructor as any)
console.log(z)
完全に良いタイプ関連の理由はありますが、私はそれが何かを見ることはできません。