mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Properly typehint formatters.ts
This commit is contained in:
parent
bf5c9b80d1
commit
d5cb48d186
|
@ -1,10 +1,10 @@
|
|||
import * as moment from 'moment';
|
||||
|
||||
export function formatPercent(value: number) {
|
||||
export function formatPercent(value: number): string {
|
||||
return value ? `${(value * 100).toFixed(3)}%` : '';
|
||||
}
|
||||
|
||||
export function formatPrice(value: number) {
|
||||
export function formatPrice(value: number): string {
|
||||
return value ? value.toFixed(8) : '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user