Skip to content

plasma-ui: update @types/styled-components #727

Open
Yeti-or opened this issue Sep 7, 2021 · 0 comments
Open

plasma-ui: update @types/styled-components #727

Yeti-or opened this issue Sep 7, 2021 · 0 comments
Labels
Dependencies Pull requests that update a dependency file Low priority

Comments

@Yeti-or
Copy link
Contributor

Yeti-or commented Sep 7, 2021

plasma-ui % npm install --save-dev @types/styled-components@5.1.14 && npm run build
> @sberdevices/plasma-ui@1.45.0 postbuild plasma/packages/plasma-ui
> tsc --outDir . --emitDeclarationOnly

src/components/Toast/ToastController.tsx:94:13 - error TS2322: Type 'Timeout' is not assignable to type 'number'.

94             hideTimeout.current = setTimeout(() => {
               ~~~~~~~~~~~~~~~~~~~

src/components/Toast/ToastController.tsx:96:16 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(callback: () => void, ms?: number | undefined): Timeout', gave the following error.
    Argument of type 'number | null' is not assignable to parameter of type 'number | undefined'.
      Type 'null' is not assignable to type 'number | undefined'.
  Overload 2 of 3, '(callback: (args: void) => void, ms?: number | undefined): Timeout', gave the following error.
    Argument of type 'number | null' is not assignable to parameter of type 'number | undefined'.
      Type 'null' is not assignable to type 'number | undefined'.
  Overload 3 of 3, '(handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]): number', gave the following error.
    Argument of type 'number | null' is not assignable to parameter of type 'number | undefined'.
      Type 'null' is not assignable to type 'number | undefined'.

96             }, timeout);
                  ~~~~~~~



Found 2 errors.
@Yeti-or Yeti-or added Dependencies Pull requests that update a dependency file Low priority labels Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Dependencies Pull requests that update a dependency file Low priority
Projects
None yet
Development

No branches or pull requests

1 participant