Skip to content

Commit

Permalink
Extended types for addStatement, as per Rubens suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
megoth committed Apr 30, 2020
1 parent 6d6284f commit 062cc10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export default class Formula extends Node {
/** Add a statment object
* @param {Statement} statement - An existing constructed statement to add
*/
addStatement (statement: Quad): number {
return this.add(statement) as number
addStatement (statement: Quad): Statement | null | this | number {
return this.add(statement)
}

/**
Expand Down

0 comments on commit 062cc10

Please sign in to comment.