Skip to content

Commit

Permalink
docs: correct customType option name (#147)
Browse files Browse the repository at this point in the history
`Parser.addParser` is a pass through to `ParseStream.addParser`, which uses and
documents `customType`. The same is in public docs (README)

Thanks!
  • Loading branch information
peterblazejewicz authored Jul 8, 2023
1 parent e7c683f commit 4d3e6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ export default class Parser extends Stream {
*
* @param {Object} options a map of options for the added parser
* @param {RegExp} options.expression a regular expression to match the custom header
* @param {string} options.type the type to register to the output
* @param {string} options.customType the custom type to register to the output
* @param {Function} [options.dataParser] function to parse the line into an object
* @param {boolean} [options.segment] should tag data be attached to the segment object
*/
Expand Down

0 comments on commit 4d3e6ce

Please sign in to comment.