im-not-enemy / radio-base

ラジオを録音するサーバです。
MIT License
0 stars 0 forks source link

tsc実行時のnedbの型エラーを消したい #17

Closed im-not-enemy closed 4 years ago

im-not-enemy commented 4 years ago

[11:44:24 PM] Starting compilation in watch mode...

src/Adapter/AutoReservationTable.ts:2:18 - error TS7016: Could not find a declaration file for module 'nedb'. '/home/naoto/radio-base/node_modules/nedb/index.js' implicitly has an 'any' type. Try npm install @types/nedb if it exists or add a new declaration (.d.ts) file containing declare module 'nedb';

2 import nedb from 'nedb'


src/Adapter/ScheduleNote.ts:1:18 - error TS7016: Could not find a declaration file for module 'nedb'. '/home/naoto/radio-base/node_modules/nedb/index.js' implicitly has an 'any' type.
  Try `npm install @types/nedb` if it exists or add a new declaration (.d.ts) file containing `declare module 'nedb';`

1 import nedb from 'nedb'

src/Adapter/Timetable.ts:2:18 - error TS7016: Could not find a declaration file for module 'nedb'. '/home/naoto/radio-base/node_modules/nedb/index.js' implicitly has an 'any' type. Try npm install @types/nedb if it exists or add a new declaration (.d.ts) file containing declare module 'nedb';

2 import nedb from 'nedb'



[11:44:34 PM] Found 3 errors. Watching for file changes.
im-not-enemy commented 4 years ago

https://github.com/im-not-enemy/radio-base/commit/3b8f35c6a489a445bc4c53844cccea9426ecdc74#diff-25d902c24283ab8cfbac54dfa101ad31