Skip to content

Commit 23e7e23

Browse files
committed
Fix type
1 parent e621b2a commit 23e7e23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ let counter = 0;
7373
* @param {string} text
7474
*/
7575
function format(e, source, text) {
76-
const er = /** @type {import('peggy').parser.PeggySyntaxError} */(e);
76+
const er = /** @type {import('peggy').parser.SyntaxError} */(e);
7777
if (typeof er?.format === "function") {
7878
er.message = er.format([{ source, text }]);
7979
}

test/minimal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @generated by Peggy 5.0.0.
1+
// @generated by Peggy 5.0.3.
22
//
33
// https://peggyjs.org/
44

0 commit comments

Comments
 (0)