ghostfolio/libs/common/src/lib/class-transformer.ts
Thomas Kaul 4f41bac328
Feature/set up caching in portfolio calculator (#3335)
* Set up caching

* Update changelog
2024-04-27 15:35:28 +02:00

10 lines
172 B
TypeScript

import { Big } from 'big.js';
export function transformToBig({ value }: { value: string }): Big {
if (value === null) {
return null;
}
return new Big(value);
}