You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: