Skip to content

Typing is incompatible between patch versions #297

Open
@krassowski

Description

@krassowski

If one package (say jupyterlab main branch) has version 3.0.0 and another (say jupyter-collaboration) has version 3.0.2 we see:

    ✖  @jupyter/collaborative-drive:build
       src/tokens.ts(35,18): error TS2430: Interface 'ICollaborativeDrive' incorrectly extends interface 'IDrive'.
         The types of 'sharedModelFactory.registerDocumentFactory' are incompatible between these types.
           Types of parameters 'factory' and 'factory' are incompatible.
             Call signature return types 'YDocument<DocumentChange>' and 'YDocument<DocumentChange>' are incompatible.
               The types of 'ydoc' are incompatible between these types.
                 Type 'Doc' is missing the following properties from type 'Doc': isDestroyed, getXmlElement
       src/tokens.ts(47,18): error TS2430: Interface 'ISharedModelFactory' incorrectly extends interface 'ISharedFactory'.

Maybe we should avoid exposing any objects from ydocument.js? Not sure yet.

Edit: To be fair, we also have this issue with react, which is why we are aggressively pinning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions