mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
[fix](d3-format): (#12272)
* Add non-breaking space to string literal definition for "thousands" separator in locale definition. (Thanks for catching this to @vetvicka) This ensures the string literal intersection type covers equivalent options to those generally used in all locale definitions already published in the d3-format repo and therefore contains all reasonable options.
This commit is contained in:
@@ -64,7 +64,7 @@ num = d3Format.precisionRound(0.0005, 3000);
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
let decimal: '.' | ',' = localeDef.decimal;
|
||||
let thousands: '.' | ',' = localeDef.thousands;
|
||||
let thousands: '.' | ',' | '\u00a0' = localeDef.thousands;
|
||||
let grouping: Array<number> = localeDef.grouping;
|
||||
let currency: [string, string] = localeDef.currency;
|
||||
|
||||
|
||||
2
d3-format/index.d.ts
vendored
2
d3-format/index.d.ts
vendored
@@ -15,7 +15,7 @@ export interface FormatLocaleDefinition {
|
||||
* The group separator (e.g., ","). Note that the thousands property is a misnomer, as\
|
||||
* the grouping definition allows groups other than thousands.
|
||||
*/
|
||||
thousands: '.' | ',';
|
||||
thousands: '.' | ',' | '\u00a0';
|
||||
/**
|
||||
* The array of group sizes (e.g., [3]), cycled as needed.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user