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
Considering the name of the TokenType interface is always string, the return type of this function is {type: string}.
Where the above snippet is simple/small, this creates overhead for larger grammars where better type information is wanted, and adds the burden of specifying more accurate types to the developer.
Ideally, the types are derived automatically, making the returntype of the MWE type: "Filter"
The text was updated successfully, but these errors were encountered:
Take this code block:
Considering the name of the
TokenType
interface is alwaysstring
, the return type of this function is{type: string}
.Where the above snippet is simple/small, this creates overhead for larger grammars where better type information is wanted, and adds the burden of specifying more accurate types to the developer.
Ideally, the types are derived automatically, making the returntype of the MWE
type: "Filter"
The text was updated successfully, but these errors were encountered: