0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

TypeScript よく使う型の超簡易的な書き方の紹介 *初心者用

Posted at

TypeScriptのすごくざっくりとした
型の書き方の紹介です。
詳しいことなどは載せていないので
間違いなどがありましたらFB頂けると幸いです。
メモ程度の感覚で見て頂けると幸いです。

##要素1つ1つの型

sample.ts
boolean :boolean
number :number
string :string
                      etc...

##配列の型

sample.ts
Array<要素1つ1つの型>

)
Array<number> = [1, 2, 3]

##オブジェクトの型

sample.ts
object = {
 要素1つ1つの型
};

object = {
 number: number
};

以上

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?