-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hello :)
Thank you for providing this feature, it helps us a ton!
In our development we've noticed that the type Currency from @sap.cds.common is missing the import upon typescript generation. For better understanding I'll provide this code example:
using {
Currency
} from '@sap/cds/common';
entity Books {
title: String;
price: Currency
}
this generates following typescript
export interface IBooks {
title: string;
price: Currencies;
price_code?: string;
}
This is misses import { ICurrencies } from "./sap.common";. We've bypassed this for now by using Association to one Currencies instead of Currency. Might be an interesting feature to add in the future :)
Kind Regards,
Tanja
Metadata
Metadata
Assignees
Labels
No labels