This commit is contained in:
parent
ed14051fe9
commit
1c454e7c26
|
|
@ -5,7 +5,7 @@ export type Exportation<ED extends EntityDict, T extends keyof ED, K extends str
|
|||
id: string;
|
||||
entity: T;
|
||||
projection: ED[T]['Selection']['data'];
|
||||
headers?: string[];
|
||||
headers?: K[];
|
||||
makeHeaders?: (dataList: Partial<ED[T]['Schema']>[]) => string[];
|
||||
fn: (data: ED[T]['Schema'], context?: AsyncContext<ED>, properties?: Record<string, any>) => Promise<Partial<Record<string, string | number | boolean | null>>> | Partial<Record<string, string | number | boolean | null>>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ var ThousandCont = function (value) {
|
|||
if (value1) {
|
||||
result = value1 + result;
|
||||
}
|
||||
result = result + '.' + numArr[1];
|
||||
result = numArr[1] ? result + '.' + numArr[1] : result;
|
||||
return result;
|
||||
};
|
||||
exports.ThousandCont = ThousandCont;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ const ThousandCont: (value: number) => string | undefined = (value) => {
|
|||
if (value1) {
|
||||
result = value1 + result;
|
||||
}
|
||||
result = result + '.' + numArr[1];
|
||||
result = numArr[1] ? result + '.' + numArr[1] : result;
|
||||
return result;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue