Open tsteckenborn opened 2 months ago
Hi Tobias,
thanks for the report! I'm afraid I can not reproduce the issue from your minimal sample. I am seeing a _/index.ts
with the contents:
// ...
/**
* Dates and timestamps are strings during runtime, so cds-typer represents them as such.
*/
export type CdsDate = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
/**
* @see {@link CdsDate}
*/
export type CdsDateTime = string;
/**
* @see {@link CdsDate}
*/
export type CdsTime = `${number}${number}:${number}${number}:${number}${number}`;
/**
* @see {@link CdsDate}
*/
export type CdsTimestamp = string;
would you mind checking again with the latest version of cds-typer?
Is there an existing issue for this?
Nature of Your Project
TypeScript
Current Behavior
I guess another quite minimal sample for this issue is:
Within the generated TypeScript files you can find:
With the CdsTimestamp reporting (same e.g. with CdsDate):
Expected Behavior
These types to be generated
Steps To Reproduce
See above
Environment
Repository Containing a Minimal Reproducible Example
No response
Anything else?
No response