// export type ICurrency = string; export const currencyTypes: string[] = [ 'NOK', 'SEK', 'EUR', 'USD', 'DKK', 'GBP', ]; export interface ICurrency { id: string; country: string; symbol: string; } export interface ICurrencyCreateInput { id: string; country: string; symbol: string; } export interface ICurrencyProperties { id?: boolean; country?: boolean; symbol?: boolean; } export interface ICurrencyPropertiesConfig { properties: ICurrencyProperties; relationProperties?: {}; } export function defaultCurrencyProperties(): ICurrencyProperties { return { id: true, country: true, symbol: true, }; } export function defaultCurrencyPropertiesConfig(): ICurrencyPropertiesConfig { return { properties: defaultCurrencyProperties(), }; }