Giter Site home page Giter Site logo

pure-typescript's Introduction

TypeScript

事前知識

  • (必須)JavaScript
  • (望ましい)ES6以上の知識

レクチャーの概要

  1. 入門編
    • Definition: TypeScriptの紹介及び前提知識
    • Types: TypeScriptのタイプの種類の紹介
    • Interface: TypeScriptが用意した注釈ツール
    • OOP: TypeScriptの特徴のオブジェクト指向
  2. 応用編
    • Generics: APIやFWなどを開発時によく使われている型引数
    • Enum: JavaScriptでは利用できない列挙型
    • Modularization: モジュール化のあるべき姿
    • Guard: ユニオンタイプを使用時に変数の保護機能
    • DTS: 型定義ファイルの書き方
    • Decorator: デコレータの書き方及び使用方法(作成中)

サンプルコードの実行方法

サンプルコードの実行方法はいくつかがあります。 大前提としてNode.jsが必須です。

Node.jsをダウンロードしてインストールすること

グローバルts-nodeを用いて実行

  1. TypeScriptをグローバルインストールします

    npm i typescript -g
  2. ts-nodeをグローバルインストールします

    npm i ts-node -g
  3. 動作確認: 下記のindex.tsを作成しましょう

    // index.ts
    const message: string = 'Hello TypeScript.'
    console.log(message);
  4. 実行

    ts-node index.ts
  5. index.tsの内容をサンプルコードに上書きをして動作確認することができます

TypeScriptネイティブHMR統合環境

Parcelを使用したHMR統合環境

実践の概要

作成中、しばらくお待ちください。

pure-typescript's People

Contributors

zzw890827 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.