We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First... I am not TypeScript expert. However, it seems to me the sample plugin code is using:
async onload() {
obsidian-sample-plugin/main.ts
Line 16 in daa0cba
Howerver the type definition is:
onload(): void;
https://github.com/obsidianmd/obsidian-api/blob/e523ed9c94480c8b5129d607b8ad5e4456cfcd3a/obsidian.d.ts#L777
This can generate errors when eslint is used.
Tnx!
The text was updated successfully, but these errors were encountered:
Thanks! The type definitions have been updated so that Plugin.onload is now async.
Sorry, something went wrong.
No branches or pull requests
First... I am not TypeScript expert. However, it seems to me the sample plugin code is using:
async onload() {
obsidian-sample-plugin/main.ts
Line 16 in daa0cba
Howerver the type definition is:
onload(): void;
https://github.com/obsidianmd/obsidian-api/blob/e523ed9c94480c8b5129d607b8ad5e4456cfcd3a/obsidian.d.ts#L777
This can generate errors when eslint is used.
Tnx!
The text was updated successfully, but these errors were encountered: