1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Chore: Desktop: Use stronger types in Sidebar.tsx (#10305)

This commit is contained in:
Henry Heino
2024-04-15 10:15:18 -07:00
committed by GitHub
parent e3ba605592
commit 8393ccc7f8
3 changed files with 82 additions and 47 deletions

View File

@ -10,10 +10,10 @@ export interface MenuItem {
id?: string;
label?: string;
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
click?: Function;
click?: ()=> void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
role?: any;
type?: string;
type?: 'normal'|'separator'|'submenu';
accelerator?: string;
checked?: boolean;
enabled?: boolean;