Skip to content

Commit

Permalink
Fix typescript build lib target (#715)
Browse files Browse the repository at this point in the history
* chore(dep): run npm audit fix.

* fix(tsc): error in type definition.

* chore(dep): rollback npm audit breaking webpack.
  • Loading branch information
Zenithar authored Nov 9, 2024
1 parent 01964d3 commit de7b926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/graph_notebook/widgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"source-map-loader": "0.2.4",
"style-loader": "1.2.1",
"ts-loader": "5.4.5",
"typescript": "4.1.6",
"typescript": "5.6.3",
"webpack": "4.43.0",
"webpack-cli": "3.3.11",
"webpack-dev-server": "3.11.0"
Expand Down
10 changes: 5 additions & 5 deletions src/graph_notebook/widgets/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class VisNode implements Node, DynamicObject {

[key: string]: any;

constructor(readonly id: string) {
constructor(id: string) {
this.id = id;
}

Expand Down Expand Up @@ -88,9 +88,9 @@ export class VisEdge implements Edge {
[key: string]: any;

constructor(
readonly from: string,
readonly to: string,
readonly id: string,
from: string,
to: string,
id: string,
label: string
) {
this.from = from;
Expand Down Expand Up @@ -184,7 +184,7 @@ export class IdentifiableDynamicObject extends DynamicObject {

[key: string]: any;

constructor(readonly id: string) {
constructor(id: string) {
super();
this.id = id;
}
Expand Down

0 comments on commit de7b926

Please sign in to comment.