Describe the bug
Intellisense is not working for methods of hubDatabase and hubKV. Methods show up as type any.
Steps to reproduce
- Start with the latest starter template (with
@nuxthub/core v0.6.14)
- Open the project in VSCode
- Go to the existing server api/routes and try to check the types of
hubDatabase or hubKV methods; they show up as type any
- No such issue for
hubBlob (as HubBlob type is defined in the same file)
Expected behavior
The correct method signature should be displayed.
Possible Cause
HubKV and HubDatabase types are being imported from individual files instead of the index file. E.g.
Current:
import type { HubKV } from '../../../../types/kv.js';
Should be:
import type { HubKV } from '../../../../types';