Skip to content

Commit

Permalink
Update tsconfig (#15)
Browse files Browse the repository at this point in the history
* Update tsconfig for repo

* Apply fixes for new tsconfig
  • Loading branch information
JoshuaCWebDeveloper authored Apr 12, 2024
1 parent f9d1423 commit 2640b07
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class CustomEngine extends DiagramEngine {
}
}

public setModel(model: CustomDiagramModel): void {
public override setModel(model: CustomDiagramModel): void {
const ret = super.setModel(model);

// Add a global event listener to the model
Expand Down
4 changes: 2 additions & 2 deletions packages/flow-client/src/app/components/flow-canvas/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

export class CustomDiagramModel extends DiagramModel {
// Custom method to add a node and register an event listener
addNode(node: NodeModel): NodeModel {
override addNode(node: NodeModel): NodeModel {
const ret = super.addNode(node);
// Register an event listener for the node
node.registerListener({
Expand All @@ -30,7 +30,7 @@ export class CustomDiagramModel extends DiagramModel {
}

// Custom method to add a link and register an event listener
addLink(link: LinkModel): LinkModel {
override addLink(link: LinkModel): LinkModel {
const ret = super.addLink(link);
// Register an event listener for the link
link.registerListener({
Expand Down
4 changes: 1 addition & 3 deletions packages/flow-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"types": ["vite/client", "vitest"],
"module": "esnext",
"target": "ESNext"
"types": ["vite/client", "vitest"]
},
"files": [],
"include": [],
Expand Down
11 changes: 8 additions & 3 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"target": "esnext",
"module": "esnext",
"lib": ["es2020", "dom"],
"lib": ["esnext", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {}
"paths": {},
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"exclude": ["node_modules", "tmp"]
}

0 comments on commit 2640b07

Please sign in to comment.