Skip to content

Commit

Permalink
Define SourceArray via jsdoc and remove export from peg.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
markw65 committed Aug 28, 2023
1 parent b992e89 commit d12ec62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/compiler/passes/generate-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ function wrapInSourceNode(prefix, chunk, location, suffix, name) {
}

/**
* @typedef {PEG.SourceArray} SourceArray
* @typedef {string|SourceNode|SARecurse} SourceArray
* @typedef {SourceArray[]} SARecurse
*
* @typedef {PEG.SourceBuildOptions<PEG.SourceOutputs>} SourceBuildOptions
* @typedef {object} ExtraOptions
Expand Down
2 changes: 0 additions & 2 deletions lib/peg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1289,8 +1289,6 @@ export type SourceBuildOptions<Output extends SourceOutputs = "source">
| OutputFormatGlobals<Output>
| OutputFormatUmd<Output>;

export type SourceArray = SourceArray[] | (SourceNode | string);

/**
* Returns a generated parser object.
*
Expand Down

0 comments on commit d12ec62

Please sign in to comment.