Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'type' does not exist on type 'ViewApi' #7056

Closed
roelkoops opened this issue Dec 14, 2022 · 2 comments
Closed

Property 'type' does not exist on type 'ViewApi' #7056

roelkoops opened this issue Dec 14, 2022 · 2 comments
Assignees
Milestone

Comments

@roelkoops
Copy link

roelkoops commented Dec 14, 2022

Reduced Test Case

not reproducible with a link

Bug Description

After upgrading to v6.0.0 i get an error: "Property 'type' does not exist on type 'ViewApi'".
According to the documentation (https://fullcalendar.io/docs/view-object) this property should still exist in v6.0.0, but it is missing in the interface:

interface ViewApi {
    calendar: CalendarApi;
    title: string;
    activeStart: Date;
    activeEnd: Date;
    currentStart: Date;
    currentEnd: Date;
    getOption(name: string): any;
}
@acerix
Copy link
Member

acerix commented Dec 14, 2022

I tested this in our Vue3 debug template and can confirm type seems to be missing now. As a workaround, the type check can be ignored by casting to any:

f

https://stackblitz.com/edit/github-6g88fe?file=src%2FDemoApp.vue

Also reported in https://fullcalendar.freshdesk.com/a/tickets/5814

@arshaw
Copy link
Member

arshaw commented Dec 20, 2022

Fixed released in v6.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants