2023-10-19から1日間の記事一覧
環境 TypeScript 問題 TSで同一ディレクトリに同じ変数を宣言できない 例えば ├── hoge.ts ├── piyo.ts で両方で const hoge = 1; とすると Cannot redeclare block-scoped variable 'hoge'.ts(2451) 'hoge' was also declared here. const hoge: any[] とエ…
環境 TypeScript 問題 TSで同一ディレクトリに同じ変数を宣言できない 例えば ├── hoge.ts ├── piyo.ts で両方で const hoge = 1; とすると Cannot redeclare block-scoped variable 'hoge'.ts(2451) 'hoge' was also declared here. const hoge: any[] とエ…