File tree Expand file tree Collapse file tree 5 files changed +11
-17
lines changed
components/dash-table/src/dash-table Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -187,14 +187,12 @@ export interface IMarkdownOptions {
187
187
html ?: boolean ;
188
188
}
189
189
190
- export type NumberFormat =
191
- | {
192
- locale : INumberLocale ;
193
- nully : any ;
194
- prefix ?: number ;
195
- specifier : string ;
196
- }
197
- | undefined ;
190
+ export type NumberFormat = {
191
+ locale : INumberLocale ;
192
+ nully : any ;
193
+ prefix ?: number ;
194
+ specifier : string ;
195
+ } ;
198
196
199
197
export interface INumberColumn extends ITypeColumn {
200
198
format ?: NumberFormat ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const getter = (
39
39
return ( column && column . sort_as_null ) || [ ] ;
40
40
} ;
41
41
42
- const isNully = ( value : any , columnId : ColumnId ) =>
42
+ const isNully = ( value : any , columnId : ColumnId ) : any =>
43
43
R . isNil ( value ) || R . includes ( value , getNullyCases ( columnId ) ) ;
44
44
45
45
if ( sort_action === TableAction . Native ) {
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export function resolveStyle(styles: IConvertedStyle[]): CSSProperties {
161
161
Object . assign ( res , styles [ i ] . style ) ;
162
162
}
163
163
164
- return R . omit ( BORDER_PROPERTIES_AND_FRAGMENTS , res ) ;
164
+ return R . omit ( BORDER_PROPERTIES_AND_FRAGMENTS as any , res ) ;
165
165
}
166
166
167
167
export const getDataCellStyle =
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default (c: IColumnType) => {
7
7
let formatter ;
8
8
switch ( c . type ) {
9
9
case ColumnType . Numeric :
10
- formatter = getNumberFormatter ( c . format ) ;
10
+ formatter = getNumberFormatter ( c . format as any ) ;
11
11
break ;
12
12
}
13
13
Original file line number Diff line number Diff line change @@ -2,15 +2,11 @@ import * as R from 'ramda';
2
2
import { formatLocale } from 'd3-format' ;
3
3
import isNumeric from 'fast-isnumeric' ;
4
4
5
- import {
6
- INumberColumn ,
7
- INumberLocale ,
8
- NumberFormat
9
- } from 'dash-table/components/Table/props' ;
5
+ import { INumberColumn , NumberFormat } from 'dash-table/components/Table/props' ;
10
6
import { reconcileNull , isNully } from './null' ;
11
7
import { IReconciliation } from './reconcile' ;
12
8
13
- const convertToD3 = ( { group, symbol, ...others } : INumberLocale ) => ( {
9
+ const convertToD3 = ( { group, symbol, ...others } : any ) : any => ( {
14
10
currency : symbol ,
15
11
thousands : group ,
16
12
...R . omit ( [ 'separate_4digits' , 'symbol' ] , others )
You can’t perform that action at this time.
0 commit comments