sindri/source/types.ts

41 lines
573 B
TypeScript
Raw Normal View History

2023-02-20 14:46:28 +01:00
/**
*/
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);
};