types/tab.types.ts
types/tab.types.ts is a file in Bane's Lab Site. 18 lines of code and 3 definitions.
import type { Tab, TabLayout, TabbedMeta } from "#types/document.types";
export interface TabbedPage {
readonly layout: TabLayout;
readonly loadTab?: (id: string) => Promise<Tab | undefined>;
readonly meta: TabbedMeta;
readonly page: string;
readonly tabs: readonly Tab[];
readonly tone: string;
}
export interface TabEntry {
readonly id: string;
readonly label: string;
readonly path: string;
}
export interface PageTabs {
readonly page: string;
readonly tabs: readonly TabEntry[];
}