UNPKG

@kform/scaffolder

Version:

Scaffolding utilities for KForm projects.

45 lines (44 loc) 2.24 kB
import * as React from "react"; import { KtData } from "./scaffolding/kotlin/KtData"; import { Schematic } from "./Schematic"; export declare const NULLABLE_SCHEMA = "io.kform.schemas.NullableSchema"; /** Information about a kind of schematic. */ export interface SchematicKind { kind: string; internal?: boolean; schema: string; package?: string; name?: string; defaultNullable?: boolean; nullable?: boolean; defaultValue: string | ((schematic: Schematic, data: KtData) => string); propertyAnnotations?: string | string[] | ((schematic: Schematic, data: KtData) => string | string[] | undefined); builder?: React.ComponentType; initChildren?: (childName: string) => Schematic[]; defaultPackageSuffix?: (childName: string) => string; defaultName?: (childName: string) => string; scaffoldModel?: (schematic: Schematic, data: KtData) => string; scaffoldType?: (schematic: Schematic, data: KtData) => string; scaffoldSchema?: (schematic: Schematic, data: KtData) => string; } export declare const anySchematicKind: SchematicKind; export declare const bigDecimalSchematicKind: SchematicKind; export declare const bigIntegerSchematicKind: SchematicKind; export declare const booleanSchematicKind: SchematicKind; export declare const byteSchematicKind: SchematicKind; export declare const charSchematicKind: SchematicKind; export declare const classSchematicKind: SchematicKind; export declare const doubleSchematicKind: SchematicKind; export declare const enumSchematicKind: SchematicKind; export declare const fileSchematicKind: SchematicKind; export declare const floatSchematicKind: SchematicKind; export declare const instantSchematicKind: SchematicKind; export declare const intSchematicKind: SchematicKind; export declare const listSchematicKind: SchematicKind; export declare const localDateSchematicKind: SchematicKind; export declare const localDateTimeSchematicKind: SchematicKind; export declare const longSchematicKind: SchematicKind; export declare const shortSchematicKind: SchematicKind; export declare const stringSchematicKind: SchematicKind; export declare const tableSchematicKind: SchematicKind; export declare const defaultSchematicKinds: SchematicKind[];