Open
Description
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.