Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TypeScriptをより実践的に使うために

 TypeScriptをより実践的に使うために

Build Insider Offline #2 ( http://www.buildinsider.net/event/offline/02 )

Mayuki Sawatari

June 14, 2014
Tweet

More Decks by Mayuki Sawatari

Other Decks in Programming

Transcript

  1. ( )

  2. ( )

  3. IDE

  4. // Rabbit function Rabbit(name) { this.name = name; } //

    jump Rabbit.prototype.jump = function () { alert(this.name + ' '); } // Rabbit Tippy var Tippy = new Rabbit(' ');
  5. any declare var Tippy: Rabbit; declare class Rabbit { constructor(name:

    string); // name: string; // jump(): void; // }
  6. JS ? var HotCocoa = { name: ' ', price:

    400 }; var KilimanjaroCoffee = { name: ' ', price: 600 };
  7. new interface interface IDrinkStatic { name: string; price: number; }

    declare var HotCocoa: IDrinkStatic; declare var KilimanjaroCoffee: IDrinkStatic;