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
interestingly if i don't define a type def i can get the real ast (using allowJs: true). if it IS defined i get the type def instead which is shit. wonder how i can get the real one!
The text was updated successfully, but these errors were encountered:
Atm when using addMock it adds a typescript package. Can we add the ability to add js ones as well?
Sure. I thought about adding an API to add a full module from disk. Would that fit this use case?
interestingly if i don't define a type def i can get the real ast (using allowJs: true). if it IS defined i get the type def instead which is shit. wonder how i can get the real one!
Have checked if this differs from the behavior you get from packages that publish inline type definitions? My hunch is it would be the same...
Sure. I thought about adding an API to add a full module from disk. Would that fit this use case?
i guess so :)
i think you're right it would be the same. i'll be investigating through the week - at least knowing that tsc can parse js and give me the AST is promising, but getting it to give me it over the type defs is.. another story.
Atm when using
addMock
it adds a typescript package. Can we add the ability to add js ones as well?I can kind of work around this by doing:
though
interestingly if i don't define a type def i can get the real ast (using allowJs: true). if it IS defined i get the type def instead which is shit. wonder how i can get the real one!
The text was updated successfully, but these errors were encountered: