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

Getting TS error extending EventModel class #4858

Open
marciogurka opened this issue Jun 27, 2022 · 0 comments
Open

Getting TS error extending EventModel class #4858

marciogurka opened this issue Jun 27, 2022 · 0 comments
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium

Comments

@marciogurka
Copy link

Forum post

In the following versions

"@bryntum/scheduler": "^5.0.6",
"@bryntum/scheduler-angular": "^5.0.6",

eg I have

import { EventModel } from '@bryntum/scheduler/scheduler.lite.umd.js';

export class SchedulerEventModel extends EventModel {

static get fields() {
    return [
      'localEdits',
      ... etc


And then I supply this when I instantiate the EventStore

 this.eventStore = new EventStore({
        modelClass: SchedulerEventModel,
        data: []
      });

However, that is causing a TS error, even with all set as the Bryntum documentation.

2022-06-27_16-31-18.png

2022-06-27_16-31-18.png

@marciogurka marciogurka added bug Something isn't working premium forum Issues from forum OEM OEM customer labels Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium
Projects
None yet
Development

No branches or pull requests

1 participant