UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

25 lines (21 loc) 459 B
export type Tab = { title: string, key: string, icon?: string, class?: string, } export type RouterTab = Tab & { route: { name: string, hash?: string, }, } export function isRouterTab(input: Tab | RouterTab): input is RouterTab { const routerTab = input as RouterTab return !!routerTab.route } type WithCount<T> = T & { count: number | null, } export type ListTab = WithCount<Tab> export type ListRouterTab = WithCount<RouterTab>