Initial scaffold from yo joplin

This commit is contained in:
Jan-Peter von Hunnius 2026-05-31 09:23:19 +02:00
commit de18d28146
37 changed files with 5991 additions and 0 deletions

18
api/JoplinViewsMenuItems.d.ts vendored Normal file
View file

@ -0,0 +1,18 @@
import { CreateMenuItemOptions, MenuItemLocation } from './types';
import Plugin from '../Plugin';
/**
* Allows creating and managing menu items.
*
* [View the demo plugin](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/register_command)
*
* <span class="platform-desktop">desktop</span>
*/
export default class JoplinViewsMenuItems {
private store;
private plugin;
constructor(plugin: Plugin, store: any);
/**
* Creates a new menu item and associate it with the given command. You can specify under which menu the item should appear using the `location` parameter.
*/
create(id: string, commandName: string, location?: MenuItemLocation, options?: CreateMenuItemOptions): Promise<void>;
}