fullcalendar/fullcalendar-angular

Resources are not in the Angular definitions

GedMarc opened this issue · 4 comments

No premium resource options are available in CalendarOptions field?

https://fullcalendar.io/docs/resources-array

error TS2322: Type '{ editable: true; selectable: true; select: (selectInfo: DateSelectArg) => void; resources: { id: string; titl
e: string; }[]; }' is not assignable to type 'CalendarOptions'.
Object literal may only specify known properties, and '"resources"' does not exist in type 'CalendarOptions'.

Reproduce by trying to specify anything related to resources,

calendarOptions: CalendarOptions = {
        "editable": true,
        "selectable": true,
        "select": this.handleDateSelect.bind(this),
        "resources" : {
            id: 'a',
            title: 'Room A'
          },
          {
            id: 'b',
            title: 'Room B'
          }
    }

Please refer to the support page and use Stack Overflow for help. If this is a bug, please supply a runnable, stripped-down demonstration.

@acerix a runnable demo of properties that don't exist? How would that happen?

I did add the assumed property names in the bug logged,

Please advise, I can break it in a heartbeat. As there is no resource support in the type script file.

You can't compile a type script file that doesn't contain any definitions for resources, as a premium and paid for feature, this is a bit concerning

Wow that's really awful ....