Skip to content

Cannot use type augmentation with RemoteStorage modules #1256

Open
@kingbri1

Description

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

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