Skip to content

onload in sample plugin is not compatible with type definition #117

@TfTHacker

Description

@TfTHacker

First... I am not TypeScript expert. However, it seems to me the sample plugin code is using:

async onload() {

async onload() {

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions