File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ ts_project(
33
33
declaration_map = True ,
34
34
extends = "//:tsconfig.json" ,
35
35
out_dir = "lib" ,
36
+ resolve_json_module = True ,
36
37
tsconfig = "//:tsconfig.esm.json" ,
37
- resolve_json_module = True ,
38
38
deps = SRC_DEPS ,
39
39
)
40
40
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ export const FormattedTime: React.FC<
73
73
value : string | number | Date | undefined
74
74
}
75
75
> = createFormattedComponent ( 'formatTime' )
76
+ // @ts -ignore issue w/ TS Intl types
76
77
export const FormattedNumber : React . FC <
77
78
NumberFormatOptions &
78
79
CustomFormatConfig & {
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const INCREMENTABLE_UNITS: RelativeTimeFormatSingularUnit[] = [
78
78
function canIncrement (
79
79
unit : RelativeTimeFormatSingularUnit = 'second'
80
80
) : boolean {
81
- return INCREMENTABLE_UNITS . includes ( unit )
81
+ return INCREMENTABLE_UNITS . indexOf ( unit ) > - 1
82
82
}
83
83
84
84
const SimpleFormattedRelativeTime : React . FC <
You can’t perform that action at this time.
0 commit comments