list-react-files icon indicating copy to clipboard operation
list-react-files copied to clipboard

Could not find a declaration file for module 'list-react-files'

Open mozgbrasil opened this issue 4 years ago • 2 comments

Good afternoon

Hello my friend

I tried to use your library in react project and the error is being returned

Could not find a declaration file for module 'list-react-files'

See the project at

https://brown-marlin-dwpxtu5z.ws-us10.gitpod.io/

Captura de tela de 2021-07-05 14-38-36

mozgbrasil avatar Jul 05 '21 17:07 mozgbrasil

Same Problem!

brunosana avatar Dec 21 '21 18:12 brunosana

Add a declaration for the library in your globals.d.ts file if you don't have one create one in your src folder

declare module 'list-react-files' {
    function listReactFiles(cwd: string): Promise<Array<string>>
}

stifskere avatar Jul 30 '23 12:07 stifskere