You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below code defines an aspect and a type, and subsequently creates two entities that inherit from them. The inheritance from the type will throw a typescript error.
Expected Behavior
To be able to inherit both from aspects as well as types. Types allow for re-using the data structure as an entity property data type so it would be useful to have this.
thanks for reporting this issue! As it turns out, this issue is actually remotely related to another bug which I will address in a PR. I checked the sample you provided and found that it fixes the problem. Would you mind checking the PR on your actual model, so we can close this problem en passant if it turns out to fix the issue?
Is there an existing issue for this?
Nature of Your Project
TypeScript
Current Behavior
The below code defines an aspect and a type, and subsequently creates two entities that inherit from them. The inheritance from the
type
will throw a typescript error.Expected Behavior
To be able to inherit both from aspects as well as types. Types allow for re-using the data structure as an entity property data type so it would be useful to have this.
Steps To Reproduce
schema.cds file:
service.cds file:
service.ts file:
Error from running
tsc
:Environment
Repository Containing a Minimal Reproducible Example
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: