Skip to content

Commit

Permalink
fix: Type issue in getDirectionStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Feb 19, 2025
1 parent 9bd5996 commit bb4b92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/state/stateDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ export class StateDB {
* @returns the direction statement if present
*/
private getDirectionStatement() {
return this.rootDoc.find((doc) => doc.stmt === STMT_DIRECTION);
return this.rootDoc.find((doc): doc is DirectionStmt => doc.stmt === STMT_DIRECTION);
}

getDirection() {
Expand Down

0 comments on commit bb4b92a

Please sign in to comment.