Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-45835

Remove TODO in frontend/@types/console/index.d.ts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.19.0
    • Management Console
    • None

      There is a TODO in frontend/@types/console/index.d.ts:

       
      // TODO: Remove when upgrading to TypeScript 4.1.2+, which has a type for ListFormat and RelativeTimeFormat.
      declare namespace Intl {
      type ListFormatOptions = {
      localeMatcher: string;
      type: string;
      style: string;
      {color:#b5b3aa}};

      class ListFormat {
      constructor(locales?: Locale | string | undefined, options?: Partial<ListFormatOptions>);
      public format(list?: Iterable<string>): string;
      {color:#b5b3aa}}

      class RelativeTimeFormat {
      constructor(locale: string);
      format(n: number, unit: string);
      {color:#b5b3aa}}
      }

      We actually need TypeScript 4.7+ to receive this patch: https://github.com/microsoft/TypeScript/issues/50381

              rh-ee-jaclee Jackson Lee
              rh-ee-jaclee Jackson Lee
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: