Skip to content

Commit

Permalink
Merge pull request #5174 from backstage/dependabot/npm_and_yarn/types…
Browse files Browse the repository at this point in the history
…cript-4.2.3

chore(deps): bump typescript from 4.1.3 to 4.2.3
  • Loading branch information
benjdlambert committed Mar 30, 2021
2 parents 4196c1e + dd880a6 commit 1ba5d52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/layout/HomepageTimer/HomepageTimer.tsx
Expand Up @@ -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;
Expand All @@ -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,
};
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -25819,9 +25819,9 @@ typescript-json-schema@^0.49.0:
yargs "^16.2.0"

typescript@^4.0.3, typescript@^4.1.3:
version "4.1.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==
version "4.2.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz#39062d8019912d43726298f09493d598048c1ce3"
integrity sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==

ua-parser-js@^0.7.18:
version "0.7.21"
Expand Down

0 comments on commit 1ba5d52

Please sign in to comment.