Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Cannot use type augmentation with RemoteStorage modules #1256

Copy link
Copy link
Open
@kingbri1

Description

@kingbri1
Issue body actions

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' {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.