File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed
Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11.DS_Store
22dist /
3+ types /
34node_modules /
45test /output /* -changed.svg
56test /output /* -changed.html
Original file line number Diff line number Diff line change 2323 },
2424 "files" : [
2525 " dist/**/*.js" ,
26- " src/**/*.js"
26+ " src/**/*.js" ,
27+ " src/**/*.ts" ,
28+ " types/**/*.d.ts"
2729 ],
2830 "scripts" : {
2931 "test" : " yarn test:typecheck && yarn test:lint && yarn readme:check && yarn test:mocha" ,
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ const numberFormat = memoize1<Intl.NumberFormat>(
88) ;
99const monthFormat = memoize1 < Intl . DateTimeFormat > (
1010 ( locale : string | string [ ] | undefined , month : "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined ) =>
11- new Intl . DateTimeFormat ( locale , { timeZone : "UTC" , month} )
11+ new Intl . DateTimeFormat ( locale , { timeZone : "UTC" , ... ( month && { month } ) } )
1212) ;
1313const weekdayFormat = memoize1 < Intl . DateTimeFormat > (
1414 ( locale : string | string [ ] | undefined , weekday : "long" | "short" | "narrow" | undefined ) =>
15- new Intl . DateTimeFormat ( locale , { timeZone : "UTC" , weekday} )
15+ new Intl . DateTimeFormat ( locale , { timeZone : "UTC" , ... ( weekday && { weekday } ) } )
1616) ;
1717
1818export function formatNumber ( locale = "en-US" ) : ( value : any ) => string | undefined {
Original file line number Diff line number Diff line change 77 "stripInternal" : true ,
88 "outDir" : " dist" ,
99 "allowJs" : true ,
10+ "declaration" : true ,
11+ "declarationDir" : " types" ,
1012 "resolveJsonModule" : true ,
1113 "moduleResolution" : " node" ,
1214 "paths" : {
You can’t perform that action at this time.
0 commit comments