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
apply?.('foo')// Worksapply<string>('foo')// Worksapply?.<string>('foo')// Failed to parse, but syntax is valid// Check the ts playground https://www.typescriptlang.org/play?#code/IYBxBsE8H4DoB4DOAXATgSwHYHMB8AKAcgDMB7UwgSiA
💻
How are you using Babel?
@babel/register or @babel/node
Input code
Configuration file name
No response
Configuration
See the REPL link below
Current and expected behavior
Parse without error
Environment
https://babeljs.io/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=IYBxBsE8H4DoAoDkAzA9qxBKABAel9gOqoBOA1gM4BQoEkAPBQC4kCWAdgOYB8SaGOfEVKUaYKHEYsOPPuix4CAMWCtwAUwAmQA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Cstage-0%2Cstage-1%2Cstage-2%2Cstage-3%2Ctypescript&prettier=false&targets=&version=7.14.4&externalPlugins=
Possible solution
No response
Additional context
No response