We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4427a98 commit 2c90c27Copy full SHA for 2c90c27
packages/svelte/types/index.d.ts
@@ -2549,8 +2549,19 @@ declare module 'svelte/events' {
2549
}
2550
2551
declare module 'svelte/toolbar' {
2552
+ export interface Tool {
2553
+ name: string;
2554
+ icon: string; // url or svg
2555
+ activate:()=>void;
2556
+ deactivate:()=>void;
2557
+ keyCombo?: string;
2558
+ disabled?: boolean;
2559
+ }
2560
+ type ToolFn = ()=>Tool
2561
+
2562
export interface Config {
- position: 'top'|'bottom'
2563
+ position?: 'top' | 'bottom';
2564
+ tools?: (Tool | ToolFn)[];
2565
2566
export function configure(options: Partial<Config>): void;
2567
0 commit comments