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
While I understand that there may be reason for TS to refuse transpiling accessor to ES5, it could allow using it in .d.ts files (or I guess in declare class classes).
The .d.ts files for @babel/parser contain some accessor modifiers in classes. This shouldn't force consumers that want to transpile to ES5 to use skipLibCheck.
π» Use Cases
Same as what I wrote in the motivating example.
The text was updated successfully, but these errors were encountered:
π Search Terms
Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
β Viability Checklist
β Suggestion
TypeScript disallows
accessor
in class fields when targeting ES5:While I understand that there may be reason for TS to refuse transpiling
accessor
to ES5, it could allow using it in.d.ts
files (or I guess indeclare class
classes).π Motivating Example
babel/babel#17136
The
.d.ts
files for@babel/parser
contain someaccessor
modifiers in classes. This shouldn't force consumers that want to transpile to ES5 to useskipLibCheck
.π» Use Cases
Same as what I wrote in the motivating example.
The text was updated successfully, but these errors were encountered: