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-web % npm install --save-dev @types/styled-components@5.1.14 && npm run build
+ @types/styled-components@5.1.14
> @sberdevices/plasma-web@1.43.0 postbuild /Users/a18587443/Projects/plasma/packages/plasma-web
> tsc --outDir . --emitDeclarationOnly
src/components/Dropdown/Dropdown.tsx:88:41 - error TS2769: No overload matches this call.
Overload 1 of 2, '(props: Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | ... 252 more ... | "key"> & { ...; }, "ref" | ... 254 more ... | "key"> & Partial<...>, "ref" | ... 254 more ... | "key"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type 'CSSObject' is not assignable to type 'CSSProperties'.
Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | ... 1 more ... | (new (props: any) => Component<...>)>', gave the following error.
Type 'CSSObject' is not assignable to type 'CSSProperties'.
88 <DropdownList ref={listRef} style={style}>
~~~~~
node_modules/@types/react/index.d.ts:1761:9
1761 style?: CSSProperties;
~~~~~
The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | ... 253 more ... | "key"> & { ...; }, "ref" | ... 254 more ... | "key"> & Partial<...>, "ref" | ... 254 more ... | "key"> & { ...; } & { ...; }'
node_modules/@types/react/index.d.ts:1761:9
1761 style?: CSSProperties;
~~~~~
The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | ... 253 more ... | "key"> & { ...; }, "ref" | ... 254 more ... | "key"> & Partial<...>, "ref" | ... 254 more ... | "key"> & { ...; } & { ...; }'
src/components/Dropdown/DropdownSub.tsx:43:27 - error TS2769: No overload matches this call.
Overload 1 of 2, '(props: Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | ... 252 more ... | "key"> & { ...; }, "ref" | ... 254 more ... | "key"> & Partial<...>, "ref" | ... 254 more ... | "key"> & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type 'CSSObject' is not assignable to type 'CSSProperties'.
Types of property 'rubyPosition' are incompatible.
Type '(string & {}) | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "alternate" | "over" | "under" | undefined' is not assignable to type '"inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "over" | "under" | undefined'.
Type 'string & {}' is not assignable to type '"inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "over" | "under" | undefined'.
Type 'string & {}' is not assignable to type '"under"'.
Overload 2 of 2, '(props: StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">): ReactElement<StyledComponentPropsWithAs<"div", any, {}, never, "div", "div">, string | ... 1 more ... | (new (props: any) => Component<...>)>', gave the following error.
Type 'CSSObject' is not assignable to type 'CSSProperties'.
43 <DropdownList style={style}>
~~~~~
node_modules/@types/react/index.d.ts:1761:9
1761 style?: CSSProperties;
~~~~~
The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | ... 253 more ... | "key"> & { ...; }, "ref" | ... 254 more ... | "key"> & Partial<...>, "ref" | ... 254 more ... | "key"> & { ...; } & { ...; }'
node_modules/@types/react/index.d.ts:1761:9
1761 style?: CSSProperties;
~~~~~
The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | ... 253 more ... | "key"> & { ...; }, "ref" | ... 254 more ... | "key"> & Partial<...>, "ref" | ... 254 more ... | "key"> & { ...; } & { ...; }'
Found 2 errors.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: