cds-typer
cds-typer copied to clipboard
[BUG] CDSDate / CdsTimestamp not generated / found
Is there an existing issue for this?
- [X] I have searched the existing issues
Nature of Your Project
TypeScript
Current Behavior
I guess another quite minimal sample for this issue is:
service Test {
entity test.TestEntity : managed {}
entity TestEntity as projection on test.TestEntity;
}
Within the generated TypeScript files you can find:
export function _temporalAspect<TBase extends new (...args: any[]) => object>(Base: TBase) {
return class temporal extends Base {
validFrom?: __.CdsTimestamp | null;
validTo?: __.CdsTimestamp | null;
static readonly actions: Record<never, never>
};
}
With the CdsTimestamp reporting (same e.g. with CdsDate):
Namespace '"/Users/.../.../.../@cds-models/_/index"' has no exported member 'CdsTimestamp'.ts(2694)
Expected Behavior
These types to be generated
Steps To Reproduce
See above
Environment
- **OS**: MacOS
- **Node**: 20.12.2
- **npm**: /
- **cds-typer**: branch fix/parameter-type-references
- **cds**: 7.8.1
Repository Containing a Minimal Reproducible Example
No response
Anything else?
No response