41 lines
573 B
TypeScript
41 lines
573 B
TypeScript
|
|
/**
|
||
|
|
*/
|
||
|
|
type type_input_data = {
|
||
|
|
domains : Array<
|
||
|
|
{
|
||
|
|
name : string;
|
||
|
|
key_field ?: (
|
||
|
|
null
|
||
|
|
|
|
||
|
|
{
|
||
|
|
name : string;
|
||
|
|
comment ?: (null | string);
|
||
|
|
}
|
||
|
|
);
|
||
|
|
data_fields ?: Array<
|
||
|
|
{
|
||
|
|
name : string;
|
||
|
|
type : string;
|
||
|
|
nullable ?: boolean;
|
||
|
|
default ?: any;
|
||
|
|
comment ?: (null | string);
|
||
|
|
}
|
||
|
|
>;
|
||
|
|
constraints ?: Array<
|
||
|
|
{
|
||
|
|
kind : string;
|
||
|
|
parameters ?: Record<string, any>;
|
||
|
|
}
|
||
|
|
>;
|
||
|
|
comment ?: (null | string);
|
||
|
|
}
|
||
|
|
>;
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
type type_output = {
|
||
|
|
render : ((input_data : type_input_data) => string);
|
||
|
|
};
|