UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

14 lines (13 loc) 581 B
import { Field, SectionData, SectionDefinition, Type, UnionToIntersection, type } from 'alinea/core'; export declare class TabsSection implements SectionData { types: Array<Type>; definition: SectionDefinition; fields: Record<string, Field>; constructor(types: Array<Type>); } type ArrayIntersection<T> = Type<UnionToIntersection<T extends Array<Type<infer V>> ? V : never>>; /** Create tabs */ export declare function tabs<Types extends Array<Type>>(...types: Types): ArrayIntersection<Types>; /** Create a tab */ export declare const tab: typeof type; export {};