@sebmck @dan_abramov is it possible to get at type information for a babel plugin?
@naman34 this.getTypeAnnotation() inside a visitor. There's a bunch of other type methods too. @dan_abramov
-
-
@sebmck@dan_abramov awesome! And this works for inferred types. Correct? -
@naman34 Yeah. There's also Path#isGenericType(genericName) and Path#isBaseType("string" | "number" | "boolean" | ...).@dan_abramov - 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 