Skip to content

Don't use interfaces for API models #828

@jsonBackup

Description

@jsonBackup

Describe the bug
Right now, the code is trying to type API models with TypeScript interfaces, like this::

.requiredSkills?.map(x => <IOperatorSkillCapability>{

requiredSkills: workstation.data .requiredSkills?.map(x => <IOperatorSkillCapability>{ name: x })

Additional context
IOperatorSkillCapability doesn’t exist anymore. Even if it did, interfaces can’t be used for API models. Instead use classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions