Skip to content

Commit

Permalink
add unknown to DateTimeFormatTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
long.ho committed Aug 22, 2022
1 parent 3f7ff15 commit 10b261b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/lib.es2017.intl.d.ts
Expand Up @@ -19,7 +19,7 @@ and limitations under the License.


declare namespace Intl {
type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";
type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year" | "unknown";

interface DateTimeFormatPart {
type: DateTimeFormatPartTypes;
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/lib/es2017.intl.d.ts
Expand Up @@ -12,6 +12,7 @@ declare namespace Intl {
timeZoneName: any
weekday: any
year: any
unknown: any
}

type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
Expand Down

0 comments on commit 10b261b

Please sign in to comment.