Skip to content

plasma-web: update @types/styled-components #729

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

plasma-web: update @types/styled-components #729

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-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.
@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