プログラミングを学び始めたとき、よく出てくるのが「文字列」という言葉。 TypeScriptでは、この「文字列」を扱うために string型 を使います。 今回はTypeScriptのstring型について詳しく見ていきます。 🧩 string型とは? string型は、文字の集まり(文字列)を ...
この章では、TypeScriptのいちばん大切な考え方である「型(type)」について学んでいきます。 「型って何?」という初心者にもわかりやすく、実際にコードを書きながら体感していきましょう。 なぜ「型」が大事なの? JavaScriptでは、変数にいろいろな型 ...
This library requires TypeScript 2.2 or later. If you require TypeScript 2.1 compatibility, version 0.2.0 of this library is the last one with support.
ERROR in [at-loader] ./node_modules/jss/src/index.d.ts:8:78 TS2344: Type 'Name' does not satisfy the constraint 'string'. Type 'string | number | symbol' is not ...