Skip to content

Typescript errors in example code from readme #91

@whatbotisthis

Description

@whatbotisthis

Looks like prepend may need to change from MenuItem[] to MenuItemConstructorOptions[]?

https://github.com/sindresorhus/electron-context-menu/blob/master/index.d.ts#L109

This change seems to clear up the TS errors regarding missing properties like checked, commandId, enabled, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions