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
I get the typescript error Property 'drafts' does not exist on type 'typeof LimsPlanStepManValueSelectOptions '.
When trying to enable drafts on that entity I get the CAP error Composition in draft-enabled entity can't lead to another entity with “@odata.draft.enabled” (in entity:“LimsPlanService.LimsPlanStep”/element:“manValueSelect”)
The Typescript error can be avoided using // @ts-ignore which then results in expected behavior.
Expected Behavior
The Typescript definitions of models which are used as Compositions should include a drafts entity in order to be able to properly register event handlers or perform database operations on them, without using // @ts-ignore.
This issue has not been updated in a while. If it is still relevant, please comment on it to keep it open. The issue will be closed soon if it remains inactive.
Is there an existing issue for this?
Nature of Your Project
TypeScript
Current Behavior
I need to access the drafts object of an entity which is used as
When using
I get the typescript error
Property 'drafts' does not exist on type 'typeof LimsPlanStepManValueSelectOptions '.
When trying to enable drafts on that entity I get the CAP error
Composition in draft-enabled entity can't lead to another entity with “@odata.draft.enabled” (in entity:“LimsPlanService.LimsPlanStep”/element:“manValueSelect”)
The Typescript error can be avoided using
// @ts-ignore
which then results in expected behavior.Expected Behavior
The Typescript definitions of models which are used as Compositions should include a drafts entity in order to be able to properly register event handlers or perform database operations on them, without using
// @ts-ignore
.Steps To Reproduce
No response
Environment
Repository Containing a Minimal Reproducible Example
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: