Files
mermaid-live-editor/src/global.d.ts
T
2021-05-15 23:27:39 +05:30

33 lines
440 B
TypeScript

/// <reference types="@sveltejs/kit" />
interface EditorUpdateEvent {
text: string;
}
interface EditorEvents {
update: EditorUpdateEvent;
}
interface TabEvents {
select: Tab;
}
interface Tab {
id: string;
title: string;
}
interface State {
code: string;
mermaid: string;
updateEditor: boolean;
updateDiagram: boolean;
autoSync: boolean;
}
interface HistoryEntry {
state: State;
time: Date;
name: string;
auto: boolean;
}