@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
14 lines (13 loc) • 678 B
TypeScript
import { AnyComponentSchema, FallbackSchema } from '@open-formulieren/types';
import { Registry, RegistryEntry } from './types';
/**
* Type guard to determine if the passed in 'component' is something we have type
* definitions for.
*
* Use this check as high as possible, so that all other child components and
* functionality do not need to worry about `FallbackSchema`.
*/
export declare const isKnownComponentType: (component: AnyComponentSchema | FallbackSchema) => component is AnyComponentSchema;
export declare const getRegistryEntry: (component: AnyComponentSchema) => RegistryEntry<AnyComponentSchema>;
declare const REGISTRY: Registry;
export default REGISTRY;