Skip to content

Commit

Permalink
Upgraded typescript to fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Jain committed Oct 5, 2021
1 parent 518950f commit fd82468
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/labextension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@phosphor/commands": "^1.6.1",
"mkdirp": "^0.5.1",
"rimraf": "^2.6.3",
"typescript": "^3.5.2"
"typescript": "^3.7.2"
},
"jupyterlab": {
"extension": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/nbdime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@phosphor/dragdrop": "^1.3.0",
"@phosphor/signaling": "^1.2.2",
"@phosphor/widgets": "^1.6.0",
"@types/node": "^16.10.2",
"json-stable-stringify": "^1.0.1"
},
"devDependencies": {
Expand All @@ -42,7 +43,6 @@
"@types/expect.js": "^0.3.29",
"@types/json-stable-stringify": "^1.0.32",
"@types/mocha": "^5.2.6",
"@types/node": "^12.0.10",
"@types/sanitizer": "^0.0.28",
"expect.js": "^0.3.1",
"fs-extra": "^8.1.0",
Expand All @@ -56,7 +56,7 @@
"karma-typescript-es6-transform": "^4.0.0",
"mocha": "^6.0.2",
"rimraf": "^2.6.3",
"typescript": "^3.5.2"
"typescript": "^3.7.2"
},
"peerDependencies": {
"codemirror": "^5.0.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/nbdime/src/upstreaming/flexlayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ class FlexLayout extends PanelLayout {
Private.toggleDirection(this.parent!, this._direction);
let style = this.parent!.node.style;
style.flexWrap = this._wrap ? 'wrap' : 'nowrap';
style.justifyContent = Private.translateFlexString(this._justifyContent);
style.alignContent = Private.translateFlexString(this._alignContent);
style.alignItems = Private.translateFlexString(this._alignItems);
style.justifyContent = Private.translateFlexString(this._justifyContent)!;
style.alignContent = Private.translateFlexString(this._alignContent)!;
style.alignItems = Private.translateFlexString(this._alignItems)!;
this.parent!.fit();
}

Expand Down Expand Up @@ -533,7 +533,7 @@ class FlexLayout extends PanelLayout {
// Update display order
for (let i = 0; i < widgets.length; ++i) {
let widget = widgets[i];
widget.node.style.order = this.order ? i.toString() : null;
widget.node.style.order = this.order ? i.toString() : '';
}
}

Expand Down Expand Up @@ -717,7 +717,7 @@ namespace FlexLayout {
if (value === 'auto') {
widget.node.style.flexBasis = value as string;
} else if (value === null) {
widget.node.style.flexBasis = value;
widget.node.style.flexBasis = '';
} else {
widget.node.style.flexBasis = value.toString() + 'px';
}
Expand Down

0 comments on commit fd82468

Please sign in to comment.