removed dependency of @shin-chan/kypes.
This commit is contained in:
30
src/types/cybozu.d.ts
vendored
Normal file
30
src/types/cybozu.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
declare namespace cybozu.data {
|
||||
namespace types {
|
||||
type SchemaDataField = {
|
||||
id: string;
|
||||
label: string; // field name
|
||||
properties: Record<string, string>;
|
||||
type: string;
|
||||
var: string; // field code
|
||||
};
|
||||
type SchemaDataTable = cybozu.data.types.SchemaDataField & {
|
||||
fieldList: Record<string, cybozu.data.types.SchemaDataField>;
|
||||
};
|
||||
type SchemaDataSubtable = Record<string, cybozu.data.types.SchemaDataTable>;
|
||||
type SchemaDataGroups = Array<{
|
||||
table: cybozu.data.types.SchemaDataTable;
|
||||
subTable: cybozu.data.types.SchemaDataSubtable;
|
||||
}>;
|
||||
type SchemaData = {
|
||||
groups: cybozu.data.types.SchemaDataGroups;
|
||||
revision: string;
|
||||
table: cybozu.data.types.SchemaDataTable;
|
||||
subTable: cybozu.data.types.SchemaDataSubtable;
|
||||
};
|
||||
}
|
||||
namespace page {
|
||||
const FORM_DATA: {
|
||||
schema: cybozu.data.types.SchemaData;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user