Skip to content

Commit

Permalink
feat(types): Expose Matcher’s grammar prop
Browse files Browse the repository at this point in the history
  • Loading branch information
pdubroy committed Feb 25, 2024
1 parent 39ccead commit 59b17ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ohm-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ export class CaseInsensitiveTerminal extends PExpr {}
* against a Grammar, e.g. in an editor or IDE.
*/
export interface Matcher {
grammar: Grammar;

/**
* Return the current input string.
*/
Expand Down
2 changes: 2 additions & 0 deletions packages/ohm-js/scripts/data/index.d.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ export class CaseInsensitiveTerminal extends PExpr {}
* against a Grammar, e.g. in an editor or IDE.
*/
export interface Matcher {
grammar: Grammar;

/**
* Return the current input string.
*/
Expand Down

0 comments on commit 59b17ec

Please sign in to comment.