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
Oh I misunderstood typeof import("./foo") before: I thought it was like js import() but it turns out to be actually a dynamic namespace import. So to make type checker happy, we can
The original PR that allowed private identifiers in typeof is begin being reverted in #48959; we may not even allow this syntax based on our design meeting discussions.
Bug Report
Originally posted by @JLHwung in babel/babel#14454 (review)
Originally posted by @JLHwung in babel/babel#14454 (comment)
I'm not sure if
typeof import('path').#p
is valid syntax, but I thinktypeof import('path').Foo.#p
is.🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
!!! error TS1003: Identifier expected.
!!! error TS2694: Namespace '"tests/cases/conformance/classes/members/privateNames/lib".Bar' has no exported member '(Missing)'.
🙂 Expected behavior
#m
)The text was updated successfully, but these errors were encountered: