2020-05-10から1日間の記事一覧
以下を参考にした。 qiita.com まず、npmのユーザーを登録しておく。 npm | build amazing things で npm addUserでユーザを紐付けておく。 .npmignore を用意して、公開に不要なもの(tsファイルとか)を指定しておく。 package.jsonのバージョン(version)を…
type AlertCompletedBlock = (index: number) => void; interface Alert { display: number; completedBlock: AlertCompletedBlock | null; title: string; desc: string; buttonTitles: string[]; } const alertInit:Alert = { display:0, title:"", desc:"…
クラスで書けるので普通のクラスの書き方に慣れているひとはこちらのほうが断然わかりやすい。型の情報が明確。 以下に詳しい解説があった。 qiita.com
rodhos.hatenadiary.jp