fix type issues

This commit is contained in:
Niels Lyngsø
2023-02-21 15:42:12 +01:00
parent 01faf8d283
commit ebbfef7848
2 changed files with 4 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ export class UmbMediaDetailServerDataSource implements RepositoryDetailDataSourc
*/
async createScaffold(parentKey: string | null) {
const data: MediaDetails = {
$type: '',
key: '',
name: '',
icon: '',

View File

@@ -55,6 +55,7 @@ export class UmbDataTypeServerDataSource implements RepositoryDetailDataSource<D
*/
async createScaffold(parentKey: string | null) {
const data: DataTypeModel = {
$type: '',
parentKey: parentKey,
};
@@ -77,9 +78,10 @@ export class UmbDataTypeServerDataSource implements RepositoryDetailDataSource<D
// TODO: use resources when end point is ready:
return tryExecuteAndNotify<DataTypeModel>(
this.#host,
// TODO: avoid this any?..
DataTypeResource.postDataType({
requestBody,
})
}) as any
);
}