@backland/schema
Version:
TypeScript schema declaration and validation library with static type inference
15 lines (14 loc) • 482 B
TypeScript
import type { FinalFieldDefinition } from './ObjectType';
import { TAnyFieldType } from './fields/FieldType';
import { MetaFieldDef } from './fields/MetaFieldField';
export type ObjectFieldListItem = {
instance: TAnyFieldType;
name: string;
plainField: FinalFieldDefinition;
};
export type ObjectHelpers = {
keys: string[];
list: ObjectFieldListItem[];
meta: MetaFieldDef | undefined;
};
export declare function getObjectHelpers(object: any): ObjectHelpers;