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
Error error TS2612: Property 'ID' will overwrite the base property in '_cuidAspect<{ new (...args: any[]): _managedAspect.managed; prototype: _managedAspect.managed; readonly actions: Record<never, never>; } & TBase>.cuid & _managedAspect.managed & object'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
Entity Definition in service file
entity ShiftHeaders as
projection on db.ShiftHeader {
*
}
excluding {
createdAt,
createdBy,
modifiedAt,
modifiedBy
};
Entity defined in db file
entity ShiftHeader : cuid, managed {
nextCursor : db.WorkForceCursor;
updateSequence : Composition[1, * ] of ShiftRecord
on updateSequence.updateSequenceId = ID;
errors : many db.WorkforceError;
warnings : many db.WorkForceWarning;
}
Is there an existing issue for this?
Nature of Your Project
TypeScript
Current Behavior
Error
error TS2612: Property 'ID' will overwrite the base property in '_cuidAspect<{ new (...args: any[]): _managedAspect.managed; prototype: _managedAspect.managed; readonly actions: Record<never, never>; } & TBase>.cuid & _managedAspect.managed & object'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
Entity Definition in service file
Entity defined in db file
Type generated in index.ts
Expected Behavior
Types must be generated without error
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: