UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

16 lines (12 loc) 551 B
import {type UserViewComponent} from '../types' import {type ComponentView, ComponentViewBuilder} from './ComponentView' import {type FormView, FormViewBuilder} from './FormView' export * from './ComponentView' export * from './FormView' export * from './View' /** @internal */ export const form = (spec?: Partial<FormView>): FormViewBuilder => new FormViewBuilder(spec) /** @internal */ export const component = ( componentOrSpec?: UserViewComponent | Partial<ComponentView>, ): ComponentViewBuilder => new ComponentViewBuilder(componentOrSpec)