Skip to content

Commit

Permalink
Fix issues with Node.isOptional() typings (#374)
Browse files Browse the repository at this point in the history
Currently, Node.isOptional is a function returning a boolean, but the typings show it as a property, not a method. Changing it to a method would help many TypeScript users, and I'm running into issues using this function myself.
  • Loading branch information
zsakowitz authored May 2, 2022
1 parent 819e033 commit d3631fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ohm-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ declare namespace ohm {
/**
* True if Node is ? option
*/
isOptional: boolean;
isOptional(): boolean;

/**
* In addition to the properties defined above, within a given
Expand Down

0 comments on commit d3631fc

Please sign in to comment.