Skip to content

Commit

Permalink
Remove temporary namespace extension
Browse files Browse the repository at this point in the history
Now included with TypeScript 5.1
  • Loading branch information
bjuppa committed Aug 8, 2023
1 parent c95c3d7 commit 72d2cdc
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions utils/supportedCanonicalTimezones.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/**
* Intl.supportedValuesOf is not shipped until Typescript 5.1
* Temporary workaround is from
* https://github.com/microsoft/TypeScript/issues/49231#issuecomment-1137251612
*
* TODO: When Typescript 5.1 is released with Deno (check with `deno --version`), remove this namespace extension.
*/
declare namespace Intl {
type Key =
| "calendar"
| "collation"
| "currency"
| "numberingSystem"
| "timeZone"
| "unit";

function supportedValuesOf(input: Key): string[];
}

/**
* Get all canonical timezones that are supported by the browser or runtime,
* or an empty array if the list is not available.
Expand Down

0 comments on commit 72d2cdc

Please sign in to comment.