Following the guide here to Develop Against Dataview.
I ran npm i -D obsidian-dataview, which works fine.
I'm able to use the javascript parts of the pacakge - getAPI() works just fine, for example.
However, the types aren't recognised. The DataviewAPI type has no info on it, it's basically just seen as any
DQL
No response
JS
import { getAPI } from "obsidian-dataview"
// No intellisense. The `DataviewAPI` type returned from `getAPI` has no actual info on it
getAPI()?.<Ctrl + Space>
What happened?
Following the guide here to Develop Against Dataview. I ran
npm i -D obsidian-dataview
, which works fine. I'm able to use the javascript parts of the pacakge -getAPI()
works just fine, for example. However, the types aren't recognised. TheDataviewAPI
type has no info on it, it's basically just seen asany
DQL
No response
JS
Dataview Version
"obsidian-dataview": "^0.5.64"
Obsidian Version
"obsidian": "^1.4.11"
OS
Linux