2021-06-20から1日間の記事一覧
実際に案件でTypeScriptのリファクタリングを行ったのでざっくりメモ。 もともとのコードは以下のような内容。 type Form = CheckForm | FreeTextForm; interface BaseForm { id: number; type: 'checkbox' | 'freeText'; description: string; } interface …
実際に案件でTypeScriptのリファクタリングを行ったのでざっくりメモ。 もともとのコードは以下のような内容。 type Form = CheckForm | FreeTextForm; interface BaseForm { id: number; type: 'checkbox' | 'freeText'; description: string; } interface …