lint fixes

This commit is contained in:
Niels Lyngsø
2023-02-21 16:59:49 +01:00
parent aefc5e5894
commit 7e6bda5ccd
3 changed files with 7 additions and 4 deletions

View File

@@ -39,9 +39,9 @@ import { UmbTemplateTreeStore } from './templating/templates/tree/data/template.
import { UmbTemplateDetailStore } from './templating/templates/workspace/data/template.detail.store';
import { UmbThemeContext } from './themes/theme.context';
import { UmbLanguageStore } from './settings/languages/repository/language.store';
import { UMB_APP_LANGUAGE_CONTEXT_TOKEN, UmbAppLanguageContext } from './settings/languages/app-language.context';
import { UmbNotificationService, UMB_NOTIFICATION_SERVICE_CONTEXT_TOKEN } from '@umbraco-cms/notification';
import { UmbLitElement } from '@umbraco-cms/element';
import { UMB_APP_LANGUAGE_CONTEXT_TOKEN, UmbAppLanguageContext } from './settings/languages/app-language.context';
import '@umbraco-cms/router';

View File

@@ -79,9 +79,9 @@ export class UmbDataTypeServerDataSource implements RepositoryDetailDataSource<D
return tryExecuteAndNotify<DataTypeModel>(
this.#host,
// TODO: avoid this any?..
DataTypeResource.postDataType({
tryExecuteAndNotify(this, DataTypeResource.postDataType({
requestBody,
}) as any
})) as any
);
}

View File

@@ -72,7 +72,10 @@ export class UmbTemplateDetailServerDataSource implements TemplateDetailDataSour
async insert(template: TemplateModel) {
const payload = { requestBody: template };
// TODO: fix type mismatch
return tryExecuteAndNotify(this.#host, TemplateResource.postTemplate(payload) as any) as any;
return tryExecuteAndNotify(
this.#host,
tryExecuteAndNotify(this.#host, TemplateResource.postTemplate(payload)) as any
) as any;
}
/**