Cannot use type augmentation with RemoteStorage modules
bdashore3 opened this issue · 0 comments
bdashore3 commented
Environment: Nextjs v12.0.4
Language: TypeScript v4.x
Hi there,
Typescript has something called module augmentation which allows users to add types to an existing package. When I try adding types for my remotestorage module onto the remotestorage package, typescript gives an error saying Cannot augment module 'remotestoragejs' because it resolves to a non-module entity.
Here's the pertinent code:
import RemoteStorage from 'remotestoragejs'
declare module 'remotestoragejs' {}