TypeScript type definitions #2

오픈
opened 2022-01-03 15:56:51 +00:00 by Ghost · 1 comment

Similar to how @types/walk exists for fs-walk.js, there should be a package with TypeScript type definitions for @root/walk.js

Currently, trying to use @root/walk.js with TypeScript (without setting noImplicitAny to false in the compiler options) results in an error like below:

src/controller.ts:5:22 - error TS7016: Could not find a declaration file for module '@root/walk'. '/home/murchu27/repos/apemusic-server/node_modules/@root/walk/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/root__walk` if it exists or add a new declaration (.d.ts) file containing `declare module '@root/walk';`
Similar to how [@types/walk](https://www.npmjs.com/package/@types/walk) exists for [fs-walk.js](https://git.coolaj86.com/coolaj86/fs-walk.js), there should be a package with TypeScript type definitions for @root/walk.js Currently, trying to use @root/walk.js with TypeScript (without setting `noImplicitAny` to false in the compiler options) results in an error like below: ``` src/controller.ts:5:22 - error TS7016: Could not find a declaration file for module '@root/walk'. '/home/murchu27/repos/apemusic-server/node_modules/@root/walk/index.js' implicitly has an 'any' type. Try `npm i --save-dev @types/root__walk` if it exists or add a new declaration (.d.ts) file containing `declare module '@root/walk';` ```
소유자

Hey @murchu27, I've copied this issue over to GitHub (https://github.com/therootcompany/walk.js/issues/1) and flagged it good first issue and up-for-grabs.

I think this could be a simple matter of adding jsdoc to the file.

Hey @murchu27, I've copied this issue over to GitHub (https://github.com/therootcompany/walk.js/issues/1) and flagged it good `first issue` and `up-for-grabs`. I think this could be a simple matter of adding jsdoc to the file.
"로그인하여 이 대화에 참여"
레이블 없음
마일스톤 없음
No project
담당자 없음
참여자 2명
알림
마감일
기한이 올바르지 않거나 범위를 벗어났습니다. 'yyyy-mm-dd'형식을 사용해주십시오.

마감일이 설정되지 않았습니다.

의존성

No dependencies set.

Reference: root/walk.js#2
No description provided.