You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current peg.d.ts, I get this error when compiling typescript that uses peggy:
../../lib/peg.d.ts:345:9 - error TS2420: Class 'SyntaxError' incorrectly implements interface 'Error'.
Type 'SyntaxError' is missing the following properties from type 'Error': name, message
345 class SyntaxError implements Error {
~~~~~~~~~~~
Found 1 error.
I think we might need to add:
name: string;
message: string;
stack?: string;
to the class, or change it to an interface?
The text was updated successfully, but these errors were encountered:
Just need to change implements to extends -- this is one of special cases in TypeScript, where you should extend interface with class instead of implementing it.
With the current
peg.d.ts
, I get this error when compiling typescript that uses peggy:I think we might need to add:
to the class, or change it to an interface?
The text was updated successfully, but these errors were encountered: