Merge pull request #5174 from backstage/dependabot/npm_and_yarn/typescript-4.2.3

chore(deps): bump typescript from 4.1.3 to 4.2.3
This commit is contained in:
Ben Lambert
2021-03-30 13:16:58 +02:00
committed by GitHub
2 changed files with 8 additions and 5 deletions
@@ -18,7 +18,10 @@ import React from 'react';
import { HeaderLabel } from '../HeaderLabel';
import { ConfigApi, useApi, configApiRef } from '@backstage/core-api';
const timeFormat = { hour: '2-digit', minute: '2-digit' };
const timeFormat: Intl.DateTimeFormatOptions = {
hour: '2-digit',
minute: '2-digit',
};
type TimeObj = {
time: string;
@@ -41,7 +44,7 @@ function getTimes(configApi: ConfigApi) {
if (clock.has('label') && clock.has('timezone')) {
let label = clock.getString('label');
const options = {
const options: Intl.DateTimeFormatOptions = {
timeZone: clock.getString('timezone'),
...timeFormat,
};