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)

13 lines (12 loc) 584 B
import { FieldOptions, Type, WithoutLabel } from 'alinea/core'; import { RecordField } from 'alinea/core/field/RecordField'; export interface ObjectOptions<Definition> extends FieldOptions<Type.Infer<Definition>> { /** The fields */ fields: Type<Definition>; width?: number; help?: string; inline?: boolean; } export declare class ObjectField<Definition> extends RecordField<Type.Infer<Definition>, ObjectOptions<Definition>> { } export declare function object<Definition>(label: string, options: WithoutLabel<ObjectOptions<Definition>>): ObjectField<Definition>;