Skip to content

Commit

Permalink
Fix some eslint warnings with the new eslint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
timmartin committed May 25, 2020
1 parent 5b65fed commit 266d8cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/diagrams/ASTNodeFactory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ASTNodeFactory extends AbstractReactFactory<ASTNodeModel, DiagramEn
return <ASTNodeWidget node={event.model} engine={this.engine} />;
}

generateModel() {
generateModel(): ASTNodeModel {
return new ASTNodeModel();
}
}
2 changes: 1 addition & 1 deletion src/diagrams/ASTNodeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class ASTNodeModel extends NodeModel {
return port;
}

addSubtreePort(label: string) {
addSubtreePort(label: string): DefaultPortModel {
const port = new DefaultPortModel({
in: false,
name: label,
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/ASTNodeWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {
engine: DiagramEngine;
}

const ASTNodeWidget = (props: Props) => {
const ASTNodeWidget: (props: Props) => React.ReactElement = (props: Props) => {
return (
<div className="ast-node">
<PortWidget
Expand Down

0 comments on commit 266d8cd

Please sign in to comment.