Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use type augmentation with RemoteStorage modules #1256

Open
bdashore3 opened this issue Dec 5, 2021 · 0 comments
Open

Cannot use type augmentation with RemoteStorage modules #1256

bdashore3 opened this issue Dec 5, 2021 · 0 comments

Comments

@bdashore3
Copy link

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' {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant