anki/ts/components/types.ts

18 lines
602 B
TypeScript
Raw Normal View History

2021-04-15 15:59:52 +02:00
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import type { DynamicSvelteComponent } from "sveltelib/dynamicComponent";
import type { SvelteComponentDev } from "svelte/internal";
export interface ToolbarItem<
T extends typeof SvelteComponentDev = typeof SvelteComponentDev
> extends DynamicSvelteComponent<T> {
id?: string;
hidden?: boolean;
}
export interface IterableToolbarItem<
T extends typeof SvelteComponentDev = typeof SvelteComponentDev
> extends ToolbarItem<T> {
items: ToolbarItem[];
}