This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://kentcdodds.com/blog/listify-a-java-script-array | |
| // unfortunately TypeScript doesn't have Intl.ListFormat yet 😢 | |
| // so we'll just add it ourselves: | |
| type ListFormatOptions = { | |
| type?: 'conjunction' | 'disjunction' | 'unit' | |
| style?: 'long' | 'short' | 'narrow' | |
| localeMatcher?: 'lookup' | 'best fit' | |
| } | |
| declare namespace Intl { | |
| class ListFormat { |