UNPKG

kolenkainc-honohub-react

Version:

React admin panel for honohub

15 lines (14 loc) 498 B
import type { CollectionAction, CollectionAdminProps } from "kolenkainc-honohub"; type GetObject<T> = T extends string ? never : T; export type CollectionType = { slug: string; label: CollectionAdminProps["label"]; columns: GetObject<NonNullable<CollectionAdminProps["columns"]>[0] & { type: string; }>[]; fields: GetObject<NonNullable<CollectionAdminProps["fields"]>[0] & { type: string; }>[]; actions: Omit<CollectionAction, "action">[]; }; export {};