Do not export unused types

This commit is contained in:
Koen Vlaswinkel
2023-09-25 15:54:26 +02:00
parent 9392fb75c8
commit 5ae67fecda
2 changed files with 28 additions and 37 deletions

View File

@@ -8,45 +8,36 @@
"extensions": {
"type": "array",
"items": {
"$ref": "#/definitions/ModelExtension"
"type": "object",
"properties": {
"addsTo": {
"type": "object",
"properties": {
"pack": {
"type": "string"
},
"extensible": {
"type": "string"
}
},
"required": ["pack", "extensible"]
},
"data": {
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/DataTuple"
}
}
}
},
"required": ["addsTo", "data"]
}
}
},
"required": ["extensions"]
},
"ModelExtension": {
"type": "object",
"properties": {
"addsTo": {
"$ref": "#/definitions/ExtensibleReference"
},
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/DataRow"
}
}
},
"required": ["addsTo", "data"]
},
"ExtensibleReference": {
"type": "object",
"properties": {
"pack": {
"type": "string"
},
"extensible": {
"type": "string"
}
},
"required": ["pack", "extensible"]
},
"DataRow": {
"type": "array",
"items": {
"$ref": "#/definitions/DataTuple"
}
},
"DataTuple": {
"type": ["boolean", "number", "string"]
}

View File

@@ -1,13 +1,13 @@
export type ExtensibleReference = {
type ExtensibleReference = {
pack: string;
extensible: string;
};
export type DataTuple = boolean | number | string;
export type DataRow = DataTuple[];
type DataRow = DataTuple[];
export type ModelExtension = {
type ModelExtension = {
addsTo: ExtensibleReference;
data: DataRow[];
};