import * as React from "react";
import styled from "styled-components";
import themed from "styled-components-ts";
export interface IProps{}
const Foo = themed<IProps>(styled.div)`
/* some styles */
`;
export default Foo;
Error message:
[ts] Exported variable 'Foo' has or is using name 'StyledComponentClass' from external module "e:/Workspace/xxxx/node_modules/styled-components-ts/node_modules/styled-components/typings/styled-components" but cannot be named.
Deps: "typescript": "^2.7.1"
Example:
Error message:
After applying this PR, you can modify example code like this to avoid [TS4023].(https://github.com/Microsoft/TypeScript/issues/5711)