Closed ra-jeev closed 2 weeks ago
Could you take a look at it @farnabaz ?
I’ll take a look but this is likely a consequence's of better compilation in module builder. ideally you treat your runtime files separately from module - either locating types in the runtime, or importing from the module package name, not a relative import.
importing from the module package name
What do mean Daniel? 🤔
@Barbapapazes opened a PR to show!
And thank you for your excellent PR migrating this module to use stub mode. I think that should enable writing some type tests to ensure something like this doesn't happen again.
Describe the bug Intellisense is not working for methods of
hubDatabase
andhubKV
. Methods show up as typeany
.Steps to reproduce
@nuxthub/core v0.6.14
)hubDatabase
orhubKV
methods; they show up as typeany
hubBlob
(asHubBlob
type is defined in the same file)Expected behavior The correct method signature should be displayed.
Possible Cause
HubKV
andHubDatabase
types are being imported from individual files instead of the index file. E.g. Current:Should be: