According to the readme of “obsidian-typings“, I have set my tsconfig.json as follows:
{
"compilerOptions": {
"lib": ["DOM", "ES2021"],
"jsx": "preserve",
"target": "ES2021",
"noEmit": true,
"skipLibCheck": true,
"jsxImportSource": "vue",
"useDefineForClassFields": true,
/* modules */
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "node",
"verbatimModuleSyntax": true,
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"noUncheckedSideEffectImports": true,
/* type checking */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": ".",
"paths": {
"@*": ["src/*"]
},
"typeRoots": ["./node_modules/@types", "./node_modules"],
"types": ["obsidian-typings"]
},
"include": ["src"]
}
but for the code app.workspace.getActiveFileView(), vscode still warns me that Property ‘getActiveFileView’ does not exist on type ‘Workspace’. How should I do to use the obsidian-typings?