You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I'm coding using TypeScript and install this library using npm. But I encounter following error on import { getOriginPrivateDirectory } from "native-file-system-adapter";
Could not find a declaration file for module 'native-file-system-adapter'. '{my project folder}/node_modules/native-file-system-adapter/src/es6.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/native-file-system-adapter` if it exists or add a new declaration (.d.ts) file containing `declare module 'native-file-system-adapter';`
I think ["types": "types"] in package.json should be modified to ["types": "./types/mod.d.ts"].
The text was updated successfully, but these errors were encountered:
Hi. I'm coding using TypeScript and install this library using npm. But I encounter following error on import { getOriginPrivateDirectory } from "native-file-system-adapter";
Could not find a declaration file for module 'native-file-system-adapter'. '{my project folder}/node_modules/native-file-system-adapter/src/es6.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/native-file-system-adapter` if it exists or add a new declaration (.d.ts) file containing `declare module 'native-file-system-adapter';`
I think ["types": "types"] in package.json should be modified to ["types": "./types/mod.d.ts"].
This is correct. I ran into this trying to use this pkg with TS.
Had to go into node_modules/native-file-system-adapter/package.json and change types field to "types": "types/mod.d.ts" and then reload typescript in VSCode and I now have proper TS support
Hi.
I'm coding using TypeScript and install this library using npm. But I encounter following error on import { getOriginPrivateDirectory } from "native-file-system-adapter";
I think ["types": "types"] in package.json should be modified to ["types": "./types/mod.d.ts"].
The text was updated successfully, but these errors were encountered: