diff --git a/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts b/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts index 36645d51b..79927cc4d 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts +++ b/src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts @@ -117,9 +117,9 @@ export class ValidationException< * Check that the exception is a ValidationExceptionInterface * @param x */ -export function isValidationException( +export function isValidationException>>( x: unknown, -): x is ValidationExceptionInterface>> { +): x is ValidationExceptionInterface { return ( x instanceof ValidationException || (typeof x === "object" && diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue index ec94b2d88..ca88afb25 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue @@ -56,7 +56,7 @@ import { ONTHEFLY_CREATE_THIRDPARTY, trans, } from "translator"; -import {CreatableEntityType, Person} from "ChillPersonAssets/types"; +import { CreatableEntityType, Person } from "ChillPersonAssets/types"; import { CreateComponentConfig } from "ChillMainAssets/types"; import PersonEdit from "ChillPersonAssets/vuejs/_components/OnTheFly/PersonEdit.vue"; @@ -66,9 +66,8 @@ const props = withDefaults(defineProps(), { query: "", }); -const emit = defineEmits<{ - (e: "onPersonCreated", payload: { person: Person }): void; -}>(); +const emit = + defineEmits<(e: "onPersonCreated", payload: { person: Person }) => void>(); const type = ref(null); @@ -112,9 +111,7 @@ function save(): void { castPerson.value.postPerson(); } -defineExpose({save}); - - +defineExpose({ save });