できない.dev

language

TypeScript

JavaScript に静的型付けを加えた言語。tsc コンパイラで JavaScript に変換して実行する。

問題一覧(15

TypeScript#type-error#argument#assignability

TypeScript で「Argument of type ... is not assignable」が解消できない

TypeScript#typescript#as-const#narrowing

TypeScript の as const で型が絞り込めない

TypeScript#tsc#types#module

TypeScript で「Cannot find module ... or its corresponding type declarations」が出る

TypeScript#excess-property#type#object-literal

TypeScript でオブジェクトリテラルに余分なプロパティを指定できない

TypeScript#typescript#esm#nodenext

TypeScript で `.js` 拡張子を付けないと NodeNext の import が解決できない

TypeScript#jsx#tsx#types

TypeScript で TSX の JSX 要素が implicit any になる(TS7026)

TypeScript#typescript#catch#unknown

TypeScript で catch の「Object is of type 'unknown'」が解決できない

TypeScript#strict#null#narrowing

TypeScript で「Object is possibly 'null'」が解消できない

TypeScript#typescript#noimplicitany#ts7006

TypeScript で「Parameter implicitly has an 'any' type」(TS7006) が解決できない

TypeScript#property#type#interface

TypeScript で「Property does not exist on type」が解消できない

TypeScript#readonly#array#as-const

TypeScript で readonly 配列に push できず Property does not exist になり変更できない

TypeScript#satisfies#narrowing#type-inference

TypeScript の satisfies 演算子で型が広がる・narrowing が効かない

TypeScript#tsc#command-not-found#path

tsc コマンドが見つからない(command not found: tsc)

TypeScript#tsconfig#paths#alias

TypeScript の tsconfig.json paths が実行時に解決できない

TypeScript#tsc#types#recursive-type

TypeScript で「Type instantiation is excessively deep and possibly infinite」が解決できない

関連用語