1
0
Derivar 0

TypeScript type definitions #2

aberta(s)
2022-01-03 15:56:51 +00:00 aberta(s) por Ghost · 1 comentário

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';` ```
Proprietário(a)

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.
Inicie a sessão para participar neste diálogo.
Sem rótulo
Sem etapa
Nenhum planeamento
Sem encarregados
2 Participantes
Notificações
Data de vencimento
A data de vencimento é inválida ou está fora do intervalo permitido. Por favor, use o formato 'aaaa-mm-dd'.

Sem data de vencimento definida.

Dependências

Não estão definidas dependências.

Referência: root/walk.js#2
Nenhuma descrição fornecida.