You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The trouble comes from a change in the type file generated by the lumino package. In 1.19.0, the Widget.layout accessor was translated as property in the type declaration. But now in 1.20.0, the accessor is kept:
This coupled with the new constrain (Properties Overriding Accessors (and vice versa) is an Error) on Typescript v4 will break code. The error is now seen on JupyterLab yet as the lock file is pulling version 1.19.0 of @lumino/widgets.
To detect the issue around accessors, TypeScript 3.7 will now emit get/set accessors in .d.ts files so that in TypeScript can check for overridden accessors.
Description
The trouble comes from a change in the type file generated by the lumino package. In 1.19.0, the
Widget.layout
accessor was translated as property in the type declaration. But now in 1.20.0, the accessor is kept:This coupled with the new constrain (Properties Overriding Accessors (and vice versa) is an Error) on Typescript v4 will break code. The error is now seen on JupyterLab yet as the lock file is pulling version 1.19.0 of @lumino/widgets.
Expected behavior
The type between minor version does not change.
Xref: jupyterlab/jupyterlab#10088
The text was updated successfully, but these errors were encountered: