johnsoncodehk / vue-tsc

vue-tsc --noEmit && vite build
https://www.npmjs.com/package/vue-tsc
MIT License
241 stars 6 forks source link

error TS7022: 'menu' implicitly has type 'any' because ... (Vue 2) #70

Closed Shinigami92 closed 3 years ago

Shinigami92 commented 3 years ago

I'm now getting

src/components/Layout/PortalSelect/PortalSelect.vue:3:36 - error TS7022: 'menu' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

3   template(v-slot:activator="{ on: menu, attrs }")
                                     ~~~~

src/components/Layout/PortalSelect/PortalSelect.vue:5:40 - error TS7022: 'tooltip' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

5       template(v-slot:activator="{ on: tooltip }")
                                         ~~~~~~~

Found 2 errors.
v-menu
  template(v-slot:activator="{ on: menu, attrs }")
    v-tooltip
      template(v-slot:activator="{ on: tooltip }")
        v-btn(
          v-on="{ ...tooltip, ...menu }",
          v-bind="attrs"
        )
      //- ...

Related to #67


johnsoncodehk commented 3 years ago

I think it's not relate to #67, please provide a repro case.

Shinigami92 commented 3 years ago

Should be still the same repro https://github.com/Shinigami92/repro-vue-tsc-65/blob/c33bf42a2964da5b7875eec3b8f4a036c5d68fe4/src/App.vue#L3-L7

Just remove https://github.com/Shinigami92/repro-vue-tsc-65/blob/c33bf42a2964da5b7875eec3b8f4a036c5d68fe4/package.json#L29-L31 and clean the node_modules and reinstall

Shinigami92 commented 3 years ago

πŸš€

Shinigami92 commented 3 years ago

You deserve it: https://twitter.com/Shini_92/status/1434791829703176193 πŸ’ͺ

johnsoncodehk commented 3 years ago

Thank you!

johnsoncodehk commented 3 years ago

Please try 0.27.15.

Shinigami92 commented 3 years ago

Please try 0.27.15.

Some other errors are popping up πŸ‘€

src/components/Layout/CustomerLogin/CustomerLogin.vue:2:1 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'never'.

2 router-view
  ~~~~~~~~~~~

src/components/VExtensions/AdsoulDateRangePicker/AdsoulDateRangePicker.vue:10:6 - error TS2322: Type '(value: DateRange) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'value' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'DateRange'.

10     @input="onInput"
        ~~~~~

src/components/VExtensions/AdsoulBtnToggle/AdsoulBtnToggle.vue:14:6 - error TS2322: Type '(event: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'event' and 'payload' are incompatible.
    Type 'Event' is missing the following properties from type 'InputEvent': data, dataTransfer, inputType, isComposing, and 5 more.

14     @change="change"
        ~~~~~~

src/components/VExtensions/AdsoulDateRangePicker/AdsoulDateRangePicker.vue:12:63 - error TS2322: Type '({ value }: VSelectOption<DateRange>) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters '__0' and 'payload' are incompatible.
    Type 'Event' is missing the following properties from type 'VSelectOption<DateRange>': value, text

12   v-radio-group.ma-4(:value="selectedDateRangePreselection", @change="selectDateRangePreselection")
                                                                 ~~~~~~

src/components/Templates/Pin/Pin.vue:14:64 - error TS2322: Type 'Event' is not assignable to type 'number'.

14       v-item-group(:value="internalValue", mandatory, @change="internalValue = $event")
                                                                  ~~~~~~~~~~~~~

src/components/VExtensions/AdsoulDateRangePickerMenu/AdsoulDateRangePickerMenu.vue:28:6 - error TS2322: Type '(value: DateRange) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'value' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'DateRange'.

28     @input="onInput",
        ~~~~~

src/components/Layout/Navigation/Navigation.vue:28:43 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

28             @input="triggerGroupExpansion($event, route)",
                                             ~~~~~~

src/components/Templates/CustomText/CustomText.vue:61:90 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'number'.

61           pin(:value="customText.pin", :text-kind="customText.textKind", @change="setPin($event)")
                                                                                            ~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:90:63 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'EntityTypeId'.
  Type 'Event' is not assignable to type 'number'.

90                     @input="!editMode && setEntityInformation($event)",
                                                                 ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Create/Create.vue:110:66 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

110                           @change="changeEntityTypeMappingActive($event, entityType)"
                                                                     ~~~~~~

src/components/SearchQueries/SearchQueryReportCard/SearchQueryReportCard.vue:139:50 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

139                     @change="changeAutomatically($event, searchQueryReport)"
                                                     ~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:225:22 - error TS2322: Type '(entityGroup: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'entityGroup' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'InputEvent'.

225                     @input.native="findEntityGroup"
                         ~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:239:22 - error TS2322: Type '(query: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'query' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'InputEvent'.

239                     @input.native="findRelated"
                         ~~~~~

Found 13 errors.
johnsoncodehk commented 3 years ago

The events related reports seems correctly. Can you make this error in https://github.com/Shinigami92/repro-vue-tsc-65?

src/components/Layout/CustomerLogin/CustomerLogin.vue:2:1 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'never'.

Shinigami92 commented 3 years ago

I'm trying... but currently I didn't get it reproduced πŸ€” On the other side, this is a old legacy code part and could be removed from our project... so if this is the only problem, please don't priorise it πŸ˜…

Shinigami92 commented 3 years ago

Oh... now I understand the event related parts 😲

Did they just work before cause the types weren't so strict? But e.g. for something like Type 'Event' is not assignable to type 'DateRange'. I know on my side that is is always my defined DateRange type πŸ€” Is there an option to relax this check?

johnsoncodehk commented 3 years ago

Is there an option to relax this check?

Yes, remove @vue/runtime-dom or lang="ts".

Shinigami92 commented 3 years ago

Yes, remove @vue/runtime-dom or lang="ts".

πŸ€” removing lang="ts" is not an option

I will try to remove @vue/runtime-dom. But even that, why did 0.27.12 work πŸ€” Also wouldn't that remove all other type checks that worked before? I currently assume that the event checks are just too strict or maybe more Vue 3 related πŸ€”

Without @vue/runtime-dom I just get one error πŸ‘€

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:166:15 - error TS2554: Expected 1 arguments, but got 0.

166               v-once,
                  ~~~~~~

Found 1 error.
//- ...
v-card-title(v-else)
  //- `v-once` needed here, so on `v-else` the redraw of the `v-btn` isn't retriggered
  //- and the `v-btn`'s content isn't empty
  v-btn(
    name="createTemplate",
    color="primary",
    rounded,
    v-once,
    @click.native="newTemplate",
    @shortkey.native="newTemplate",
    v-shortkey.once="['+']"
  )
    v-icon(left) mdi-plus
    span New
Shinigami92 commented 3 years ago

For today I will stay on 0.27.12
I will wait a bit cause 0.27.12 is working for me and maybe some other folks have similar problems and raise issues πŸ€” so lets see the next few days

johnsoncodehk commented 3 years ago

I found some problem in 0.27.15 and fixed, can you try 0.27.16-alpha.1?

Shinigami92 commented 3 years ago

Maaaannny more errors πŸ˜… Gimme more

src/components/Layout/CustomerLogin/CustomerLogin.vue:2:1 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'never'.

2 router-view
  ~~~~~~~~~~~

src/components/Dialogs/DiscardDialog/DiscardDialog.vue:2:59 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

2 confirm-dialog(ref="dialog", :translation="translation", @confirm="onConfirm")
                                                            ~~~~~~~

src/views/Jobs/Details/Details.vue:3:76 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

3   confirm-dialog(ref="restartDialog", translation="jobs.confirm-restart", @confirm="onConfirmRestartJob")
                                                                             ~~~~~~~

src/components/Layout/AppBar/AppBar.vue:3:44 - error TS2339: Property 'onSend' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

3   feedback-dialog(:show="feedbackDialog", @send="sendFeedback", @cancel="feedbackDialog = false")
                                             ~~~~

src/views/UserManagement/Edit/Edit.vue:3:93 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

3   confirm-dialog(ref="confirmChangeDialog", :translation="confirmChangeDialogTranslation", @confirm="onConfirmChange")
                                                                                              ~~~~~~~

src/components/Layout/AppBar/AppBar.vue:3:66 - error TS2339: Property 'onCancel' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

3   feedback-dialog(:show="feedbackDialog", @send="sendFeedback", @cancel="feedbackDialog = false")
                                                                   ~~~~~~

src/views/Jobs/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/AdTemplates/SearchAndReplace/SearchAndReplace.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="onConfirmSelectedCancel"
       ~~~~~~~

src/views/EntityManagement/EntityGroups/AssignEntities/AssignEntities.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="onConfirmChanges"
       ~~~~~~~

src/views/AdTemplates/StatusManagement/StatusManagement.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkActivateSelected"
       ~~~~~~~

src/views/UserManagement/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/Keywords/Delete/Delete.vue:7:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

7     @confirm="sendRequest"
       ~~~~~~~

src/views/Keywords/Blocklist/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/Keywords/Booking/Booking.vue:7:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

7     @confirm="sendRequest"
       ~~~~~~~

src/views/EntityManagement/Entities/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/AdTemplates/Sitelinks/Details/Details.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/EntityManagement/EntityTypes/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="bulkDeleteSelected"
       ~~~~~~~

src/views/EntityManagement/EntityTypes/Details/Details.vue:6:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

6     @confirm="confirmCombineWithMainTypes"
       ~~~~~~~

src/components/Dialogs/DeleteDialog/DeleteDialog.vue:10:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

10     @confirm="onDelete()"
        ~~~~~~~

src/views/Jobs/Details/Details.vue:5:69 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

5   delete-dialog(ref="stopDialog", translation="jobs.confirm-stop", @delete="onConfirmStopJob")
                                                                      ~~~~~~

src/components/VExtensions/AdsoulDateRangePicker/AdsoulDateRangePicker.vue:10:6 - error TS2322: Type '(value: DateRange) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'value' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'DateRange'.

10     @input="onInput"
        ~~~~~

src/views/Jobs/Overview/Overview.vue:9:75 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

9   delete-dialog(ref="restartDialog", translation="jobs.confirm-restart", @delete="onConfirmRestartJob")
                                                                            ~~~~~~

src/components/DataTable/FilterChip/FilterChip.vue:5:88 - error TS2339: Property 'onClick:close' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

5       v-chip(v-on="on", v-bind="attrs", :color="color", small, :close="hasSelection", @click:close="reset")
                                                                                         ~~~~~~~~~~~

src/views/UserManagement/Overview/Overview.vue:9:89 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

9   delete-dialog(ref="deleteDialog", translation="user-management.crud.confirm-delete", @delete="deleteUser")
                                                                                          ~~~~~~

src/views/PortalManagement/Overview/Overview.vue:9:91 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

9   delete-dialog(ref="deleteDialog", translation="portal-management.crud.confirm-delete", @delete="deletePortal")
                                                                                            ~~~~~~

src/views/AdTemplates/StatusManagement/StatusManagement.vue:12:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

12     @confirm="bulkDeactivateSelected"
        ~~~~~~~

src/views/Jobs/Details/Details.vue:7:73 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

7   delete-dialog(ref="deleteDialog", translation="jobs.confirm-delete", @delete="onConfirmDeleteJob")
                                                                          ~~~~~~

src/components/VExtensions/AdsoulBtnToggle/AdsoulBtnToggle.vue:14:6 - error TS2322: Type '(event: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'event' and 'payload' are incompatible.
    Type 'Event' is missing the following properties from type 'InputEvent': data, dataTransfer, inputType, isComposing, and 5 more.

14     @change="change"
        ~~~~~~

src/views/AdTemplates/Sitelinks/Details/Details.vue:12:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

12     @delete="deleteSitelink"
        ~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:12:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

12     @delete="deleteEntityGroup"
        ~~~~~~

src/components/VExtensions/AdsoulDateRangePicker/AdsoulDateRangePicker.vue:12:63 - error TS2322: Type '({ value }: VSelectOption<DateRange>) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters '__0' and 'payload' are incompatible.
    Type 'Event' is missing the following properties from type 'VSelectOption<DateRange>': value, text

12   v-radio-group.ma-4(:value="selectedDateRangePreselection", @change="selectDateRangePreselection")
                                                                 ~~~~~~

src/views/AdTemplates/Sitelinks/Overview/Overview.vue:12:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

12     @delete="deleteSitelinkTemplate"
        ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:12:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

12     @delete="onConfirmDeleteTemplate"
        ~~~~~~

src/views/Keywords/BookingErrors/BookingErrors.vue:10:35 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

10           search(:init="search", @search="onSearch")
                                     ~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:12:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

12     @confirm="importDescriptions"
        ~~~~~~~

src/views/Keywords/Blocklist/Overview/Overview.vue:13:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

13     @delete="deleteEntry"
        ~~~~~~

src/views/Jobs/Overview/Overview.vue:11:69 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

11   delete-dialog(ref="stopDialog", translation="jobs.confirm-stop", @delete="onConfirmStopJob")
                                                                       ~~~~~~

src/views/EntityManagement/Entities/Overview/Overview.vue:13:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

13     @delete="deleteEntity"
        ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:12:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

12     @confirm="bulkGenerateResponsiveTextTemplatesSelected"
        ~~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:13:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

13     @confirm="onConfirmMissingEntityGroup"
        ~~~~~~~

src/views/Jobs/Overview/Overview.vue:13:73 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

13   delete-dialog(ref="deleteDialog", translation="jobs.confirm-delete", @delete="onConfirmDeleteJob")
                                                                           ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:18:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

18     @delete="onConfirmDeleteRsaTemplate"
        ~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:18:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

18     @delete="deleteSelected"
        ~~~~~~

src/views/EntityManagement/EntityTypes/Overview/Overview.vue:14:6 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

14     @delete="deleteEntityType"
        ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:19:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

19     @confirm="bulkGenerateResponsiveTextTemplatesResultSelected"
        ~~~~~~~

src/components/Templates/Pin/Pin.vue:14:64 - error TS2322: Type 'Event' is not assignable to type 'number'.

14       v-item-group(:value="internalValue", mandatory, @change="internalValue = $event")
                                                                  ~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:24:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

24     @confirm="onConfirmDeactivateTemplate",
        ~~~~~~~

src/views/Performance/Performance.vue:20:22 - error TS2339: Property 'onClick:append' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

20                     @click:append="loadPerformanceData",
                        ~~~~~~~~~~~~

src/components/VExtensions/AdsoulDateRangePickerMenu/AdsoulDateRangePickerMenu.vue:27:6 - error TS2339: Property 'onUpdate:dateRangePreselections' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

27     @update:date-range-preselections="dateRangePreselections = $event",
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:25:6 - error TS2339: Property 'onCancel' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

25     @cancel="abortDeactivation"
        ~~~~~~

src/views/Keywords/Preview/Preview.vue:21:22 - error TS2339: Property 'onClick:append' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

21                     @click:append="searchKeyword",
                        ~~~~~~~~~~~~

src/components/VExtensions/AdsoulDateRangePickerMenu/AdsoulDateRangePickerMenu.vue:28:6 - error TS2322: Type '(value: DateRange) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'value' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'DateRange'.

28     @input="onInput",
        ~~~~~

src/components/VExtensions/AdsoulDateRangePickerMenu/AdsoulDateRangePickerMenu.vue:29:6 - error TS2339: Property 'onDone' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

29     @done="closeMenu"
        ~~~~

src/views/EntityManagement/Entities/Details/Details.vue:21:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

21     @confirm="useProposedValue"
        ~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:31:6 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

31     @confirm="onConfirmDeactivateRsaTemplate",
        ~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:32:6 - error TS2339: Property 'onCancel' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

32     @cancel="abortRsaDeactivation"
        ~~~~~~

src/views/Keywords/BookingErrors/BookingErrors.vue:28:12 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

28           @update:options="updateOptions",
              ~~~~~~~~~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:31:8 - error TS2339: Property 'onConfirm' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

31       @confirm="deleteAndCreateRenamedEntity"
          ~~~~~~~

src/components/Layout/Navigation/Navigation.vue:28:43 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

28             @input="triggerGroupExpansion($event, route)",
                                             ~~~~~~

src/views/UserManagement/Create/Create.vue:34:20 - error TS2339: Property 'onClick:append' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

34                   @click:append="showPassword = !showPassword",
                      ~~~~~~~~~~~~

src/views/UserManagement/Edit/Edit.vue:35:20 - error TS2339: Property 'onClick:append' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

35                   @click:append="showPassword = !showPassword",
                      ~~~~~~~~~~~~

src/components/Templates/CustomText/CustomText.vue:32:14 - error TS2339: Property 'onClick:appendOuter' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

32             @click:append-outer="removeLine(customText.lines1, index)",
                ~~~~~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/RsaTemplate/RsaTemplate.vue:35:6 - error TS2339: Property 'onAfterSave' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

35     @after-save="afterSharedComponentSaved",
        ~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/RsaTemplate/RsaTemplate.vue:36:6 - error TS2339: Property 'onCancel' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

36     @cancel="sharedComponentDialog = false"
        ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:53:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

53               @shortkey.native="newRsaTemplate",
                  ~~~~~~~~

src/views/PortalManagement/Overview/Overview.vue:51:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

51               @shortkey.native="redirect(routeToCreatePortal)",
                  ~~~~~~~~

src/views/AdTemplates/Sitelinks/Overview/Overview.vue:52:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

52               @shortkey.native="redirect(routeToCreateSitelinkTemplate)",
                  ~~~~~~~~

src/views/Jobs/Overview/Overview.vue:50:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

50             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/AdTemplates/Sitelinks/Details/Details.vue:54:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

54               @shortkey.native="redirect(routeToCreateSitelink)",
                  ~~~~~~~~

src/views/AdTemplates/StatusManagement/StatusManagement.vue:55:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

55             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/UserManagement/Overview/Overview.vue:56:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

56               @shortkey.native="redirect(createUserRoute)",
                  ~~~~~~~~

src/views/AdTemplates/Sitelinks/Overview/Overview.vue:58:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

58             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:53:88 - error TS2339: Property 'onDelete' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

53   delete-dialog(ref="deleteDialog", translation="ad-templates.groups.confirm.delete", @delete="deleteMasterTemplate")
                                                                                          ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:67:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

67             @update:options="updateOptions"
                ~~~~~~~~~~~~~~

src/views/AdTemplates/Sitelinks/Details/Details.vue:61:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

61             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/EntityManagement/EntityTypes/Overview/Overview.vue:60:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

60               @shortkey.native="redirect(routeToCreateEntityType)",
                  ~~~~~~~~

src/views/UserManagement/Overview/Overview.vue:62:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

62             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/AdTemplates/StatusManagement/StatusManagement.vue:71:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

71             @update:options="updateOptions",
                ~~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:67:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

67               @shortkey.native="redirect(routeToCreateEntityGroup)",
                  ~~~~~~~~

src/views/PortalManagement/Overview/Overview.vue:70:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

70             @toggle-select-all="selection.setAll($event.items, $event.value)",
                ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/StatusManagement/StatusManagement.vue:72:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

72             @toggle-select-all="selection.setAll($event.items, $event.value)",
                ~~~~~~~~~~~~~~~~~

src/components/Templates/CustomText/CustomText.vue:61:90 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'number'.

61           pin(:value="customText.pin", :text-kind="customText.textKind", @change="setPin($event)")
                                                                                            ~~~~~~

src/views/PortalManagement/Overview/Overview.vue:71:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

71             @item-selected="selection.set($event.item, $event.value)",
                ~~~~~~~~~~~~~

src/views/AdTemplates/StatusManagement/StatusManagement.vue:73:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

73             @item-selected="selection.set($event.item, $event.value)",
                ~~~~~~~~~~~~~

src/views/AdTemplates/Sitelinks/Overview/Overview.vue:73:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

73             @update:options="updateOptions",
                ~~~~~~~~~~~~~~

src/views/PortalManagement/Overview/Overview.vue:72:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

72             @update:options="updateOptions",
                ~~~~~~~~~~~~~~

src/views/EntityManagement/EntityTypes/Overview/Overview.vue:68:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

68             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/AdTemplates/Sitelinks/Overview/Overview.vue:74:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

74             @toggle-select-all="selection.setAll($event.items, $event.value)",
                ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/Sitelinks/Overview/Overview.vue:75:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

75             @item-selected="selection.set($event.item, $event.value)",
                ~~~~~~~~~~~~~

src/views/AdTemplates/Sitelinks/Details/Details.vue:78:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

78             @update:options="updateOptions",
                ~~~~~~~~~~~~~~

src/views/AdTemplates/Sitelinks/Details/Details.vue:79:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

79             @toggle-select-all="selection.setAll($event.items, $event.value)",
                ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/Sitelinks/Details/Details.vue:80:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

80             @item-selected="selection.set($event.item, $event.value)",
                ~~~~~~~~~~~~~

src/views/UserManagement/Overview/Overview.vue:78:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

78             @update:options="updateOptions",
                ~~~~~~~~~~~~~~

src/views/UserManagement/Overview/Overview.vue:79:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

79             @toggle-select-all="selection.setAll($event.items, $event.value)",
                ~~~~~~~~~~~~~~~~~

src/views/Keywords/Blocklist/Overview/Overview.vue:82:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

82               @shortkey.native="redirect(routeToCreateBlocklistEntry)",
                  ~~~~~~~~

src/views/UserManagement/Overview/Overview.vue:80:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

80             @item-selected="selection.set($event.item, $event.value)",
                ~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:78:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

78             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:88:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

88               @shortkey.native="redirect(routeToCreateComponent)",
                  ~~~~~~~~

src/views/EntityManagement/Entities/Overview/Overview.vue:84:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

84               @shortkey.native="redirect(routeToCreateEntity)",
                  ~~~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:90:63 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'EntityTypeId'.
  Type 'Event' is not assignable to type 'number'.

90                     @input="!editMode && setEntityInformation($event)",
                                                                 ~~~~~~

src/views/Keywords/Blocklist/Overview/Overview.vue:93:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

93             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/components/Templates/CustomText/CustomText.vue:84:18 - error TS2339: Property 'onClick:appendOuter' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

84                 @click:append-outer="customText.lines2 && removeLine(customText.lines2, index)",
                    ~~~~~~~~~~~~~~~~~~

src/views/EntityManagement/Entities/Overview/Overview.vue:95:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

95             search(:init="search", @search="onSearch")
                                       ~~~~~~

src/views/EntityManagement/EntityTypes/Overview/Overview.vue:97:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

97             @update:options="updateOptions",
                ~~~~~~~~~~~~~~

src/views/EntityManagement/EntityTypes/Overview/Overview.vue:98:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

98             @toggle-select-all="selection.setAll($event.items, $event.value)",
                ~~~~~~~~~~~~~~~~~

src/views/EntityManagement/EntityTypes/Overview/Overview.vue:99:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

99             @item-selected="selection.set($event.item, $event.value)",
                ~~~~~~~~~~~~~

src/views/Jobs/Overview/Overview.vue:108:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

108             @update:options="updateOptions",
                 ~~~~~~~~~~~~~~

src/views/Jobs/Overview/Overview.vue:109:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

109             @toggle-select-all="selection.setAll($event.items, $event.value)",
                 ~~~~~~~~~~~~~~~~~

src/views/Jobs/Overview/Overview.vue:110:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

110             @item-selected="selection.set($event.item, $event.value)",
                 ~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:113:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

113             @update:options="updateOptions",
                 ~~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:114:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

114             @toggle-select-all="selection.setAll($event.items, $event.value)",
                 ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:115:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

115             search(:init="search", @search="onSearch")
                                        ~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:115:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

115             @item-selected="selection.set($event.item, $event.value)",
                 ~~~~~~~~~~~~~

src/views/Keywords/Blocklist/Overview/Overview.vue:127:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

127             @update:options="updateOptions",
                 ~~~~~~~~~~~~~~

src/views/Keywords/Blocklist/Overview/Overview.vue:128:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

128             @toggle-select-all="selection.setAll($event.items, $event.value)",
                 ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Create/Create.vue:110:66 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

110                           @change="changeEntityTypeMappingActive($event, entityType)"
                                                                     ~~~~~~

src/views/AdTemplates/SearchAndReplace/SearchAndReplace.vue:124:39 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

124               search(:init="search", @search="onSearch")
                                          ~~~~~~

src/views/Keywords/Blocklist/Overview/Overview.vue:129:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

129             @item-selected="selection.set($event.item, $event.value)",
                 ~~~~~~~~~~~~~

src/views/EntityManagement/Entities/Overview/Overview.vue:130:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

130             @update:options="updateOptions",
                 ~~~~~~~~~~~~~~

src/views/EntityManagement/Entities/Overview/Overview.vue:131:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

131             @toggle-select-all="selection.setAll($event.items, $event.value)",
                 ~~~~~~~~~~~~~~~~~

src/views/EntityManagement/Entities/Overview/Overview.vue:132:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

132             @item-selected="selection.set($event.item, $event.value)",
                 ~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:133:39 - error TS2339: Property 'onOpen' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

133                 v-edit-dialog(large, @open="backupPosition(item)", @save="updatePosition(item)")
                                          ~~~~

src/views/AdTemplates/SearchAndReplace/SearchAndReplace.vue:139:16 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

139               @update:options="updateOptions",
                   ~~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/Overview/Overview.vue:133:69 - error TS2339: Property 'onSave' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

133                 v-edit-dialog(large, @open="backupPosition(item)", @save="updatePosition(item)")
                                                                        ~~~~

src/views/AdTemplates/SearchAndReplace/SearchAndReplace.vue:140:16 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

140               @toggle-select-all="selection.setAll($event.items, $event.value)",
                   ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/SearchAndReplace/SearchAndReplace.vue:141:16 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

141               @item-selected="selection.set($event.item, $event.value)",
                   ~~~~~~~~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:148:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

148             @update:options="updateOptions",
                 ~~~~~~~~~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:149:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

149             @toggle-select-all="selection.setAll($event.items, $event.value)",
                 ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:164:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

164               @shortkey.native="redirect(routeToCreateAdTemplate)",
                   ~~~~~~~~

src/views/EntityManagement/EntityGroups/AssignEntities/AssignEntities.vue:142:39 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

142               search(:init="search", @search="onSearch")
                                          ~~~~~~

src/views/AdTemplates/Components/Overview/Overview.vue:150:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

150             @item-selected="selection.set($event.item, $event.value)",
                 ~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:170:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

170             search(:init="search", @search="onSearch")
                                        ~~~~~~

src/components/SearchQueries/SearchQueryReportCard/SearchQueryReportCard.vue:139:50 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

139                     @change="changeAutomatically($event, searchQueryReport)"
                                                     ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:168:16 - error TS2339: Property 'onShortkey' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

168               @shortkey.native="newAdTemplate",
                   ~~~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:182:24 - error TS2339: Property 'onClick:appendOuter' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

182                       @click:append-outer="removeVariant(index)",
                           ~~~~~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:174:37 - error TS2339: Property 'onSearch' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

174             search(:init="search", @search="onSearch")
                                        ~~~~~~

src/views/EntityManagement/EntityGroups/AssignEntities/AssignEntities.vue:176:16 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

176               @update:options="updateOptions",
                   ~~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/AssignEntities/AssignEntities.vue:177:16 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

177               @toggle-select-all="selection.setAll($event.items, $event.value)",
                   ~~~~~~~~~~~~~~~~~

src/views/EntityManagement/EntityGroups/AssignEntities/AssignEntities.vue:178:16 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

178               @item-selected="selection.set($event.item, $event.value)",
                   ~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:190:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

190             @update:options="updateOptions",
                 ~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:191:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

191             @toggle-select-all="selection.setAll($event.items, $event.value)",
                 ~~~~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Details/Details.vue:192:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

192             @item-selected="selection.set($event.item, $event.value)",
                 ~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:205:14 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

205             @update:options="updateOptions",
                 ~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:206:14 - error TS2339: Property 'onToggleSelectAll' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

206             @toggle-select-all="selection.setAll($event.items, $event.value)",
                 ~~~~~~~~~~~~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:200:24 - error TS2339: Property 'onClick:prependInner' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

200                       @click:prepend-inner="addVariant()",
                           ~~~~~~~~~~~~~~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Overview/Overview.vue:207:14 - error TS2339: Property 'onItemSelected' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

207             @item-selected="selection.set($event.item, $event.value)",
                 ~~~~~~~~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:225:22 - error TS2322: Type '(entityGroup: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'entityGroup' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'InputEvent'.

225                     @input.native="findEntityGroup"
                         ~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:239:22 - error TS2322: Type '(query: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'query' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'InputEvent'.

239                     @input.native="findRelated"
                         ~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:304:18 - error TS2339: Property 'onUpdate:options' does not exist on type 'Omit<__VLS_GlobalAttrs, never>'.

304                 @update:options="updateOptions"
                     ~~~~~~~~~~~~~~

Found 153 errors.

Just an example for our confirm-dialog, it uses emits: ['confirm', 'cancel']

johnsoncodehk commented 3 years ago

I make a mistake :S, how about 0.27.16-alpha.2?

Shinigami92 commented 3 years ago

Only 13 (1 ignorable) errors πŸ™‚

src/components/Layout/CustomerLogin/CustomerLogin.vue:2:1 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'never'.

2 router-view
  ~~~~~~~~~~~

src/components/VExtensions/AdsoulDateRangePicker/AdsoulDateRangePicker.vue:10:6 - error TS2322: Type '(value: DateRange) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'value' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'DateRange'.

10     @input="onInput"
        ~~~~~

src/components/VExtensions/AdsoulBtnToggle/AdsoulBtnToggle.vue:14:6 - error TS2322: Type '(event: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'event' and 'payload' are incompatible.
    Type 'Event' is missing the following properties from type 'InputEvent': data, dataTransfer, inputType, isComposing, and 5 more.

14     @change="change"
        ~~~~~~

src/components/VExtensions/AdsoulDateRangePicker/AdsoulDateRangePicker.vue:12:63 - error TS2322: Type '({ value }: VSelectOption<DateRange>) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters '__0' and 'payload' are incompatible.
    Type 'Event' is missing the following properties from type 'VSelectOption<DateRange>': value, text

12   v-radio-group.ma-4(:value="selectedDateRangePreselection", @change="selectDateRangePreselection")
                                                                 ~~~~~~

src/components/Templates/Pin/Pin.vue:14:64 - error TS2322: Type 'Event' is not assignable to type 'number'.

14       v-item-group(:value="internalValue", mandatory, @change="internalValue = $event")
                                                                  ~~~~~~~~~~~~~

src/components/VExtensions/AdsoulDateRangePickerMenu/AdsoulDateRangePickerMenu.vue:28:6 - error TS2322: Type '(value: DateRange) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'value' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'DateRange'.

28     @input="onInput",
        ~~~~~

src/components/Layout/Navigation/Navigation.vue:28:43 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

28             @input="triggerGroupExpansion($event, route)",
                                             ~~~~~~

src/components/Templates/CustomText/CustomText.vue:61:90 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'number'.

61           pin(:value="customText.pin", :text-kind="customText.textKind", @change="setPin($event)")
                                                                                            ~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:90:63 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'EntityTypeId'.
  Type 'Event' is not assignable to type 'number'.

90                     @input="!editMode && setEntityInformation($event)",
                                                                 ~~~~~~

src/views/AdTemplates/AdTemplatesGroups/Create/Create.vue:110:66 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

110                           @change="changeEntityTypeMappingActive($event, entityType)"
                                                                     ~~~~~~

src/components/SearchQueries/SearchQueryReportCard/SearchQueryReportCard.vue:139:50 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

139                     @change="changeAutomatically($event, searchQueryReport)"
                                                     ~~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:225:22 - error TS2322: Type '(entityGroup: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'entityGroup' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'InputEvent'.

225                     @input.native="findEntityGroup"
                         ~~~~~

src/views/EntityManagement/Entities/Details/Details.vue:239:22 - error TS2322: Type '(query: InputEvent) => void' is not assignable to type '(payload: Event) => void'.
  Types of parameters 'query' and 'payload' are incompatible.
    Type 'Event' is not assignable to type 'InputEvent'.

239                     @input.native="findRelated"
                         ~~~~~

Found 13 errors.
Shinigami92 commented 3 years ago

Lets analyse e.g. line 110

src/views/AdTemplates/AdTemplatesGroups/Create/Create.vue:110:66 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'boolean'.

110                           @change="changeEntityTypeMappingActive($event, entityType)"
                                                                     ~~~~~~

The code looks as follows:

v-switch(
  name="replace",
  inset,
  hide-details,
  :input-value="asAny(entityTypeIdMapping[entityType.id]).active",
  @change="changeEntityTypeMappingActive($event, entityType)"
)

I think you try to read the type of value/v-model and with that calculate they possible type of @change But here I have :input-value and even if, how could you assume that $event is definitely Event here?

asAny(entityTypeIdMapping[entityType.id]).active is equals to entityTypeIdMapping[entityType.id].active and entityTypeIdMapping is of type Record<number, { active: boolean }> But the asAny is casting it to any anyways. So I would at least assume that $event is any

johnsoncodehk commented 3 years ago

I will not infer the type of event from props. This is vue's generic component works, and vue not support it yet.

If you have asAny, I think you just need to wrap $event by asAny: changeEntityTypeMappingActive(asAny($event), entityType).

Shinigami92 commented 3 years ago

If you have asAny, I think you just need to wrap $event by asAny: changeEntityTypeMappingActive(asAny($event), entityType)

Wow... why haven't I thought about this 🀦 Thank you πŸ’š it works πŸŽ‰


And now I found the error in this CustomerLogin View

import { defineComponent } from '@vue/composition-api';

export default defineComponent({
  name: 'CustomerLogin',
  setup() {
    // ...

    // return {}; // <-- I missed this line!
  }
});
johnsoncodehk commented 3 years ago

Yes this is a known @vue/composition-api problem.