{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30536","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30536/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30536/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30536/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30536","id":380936621,"node_id":"MDU6SXNzdWUzODA5MzY2MjE=","number":30536,"title":"[@types/styled-components] 4.1.0 breaks themes","user":{"login":"vincentparrett","id":1037262,"node_id":"MDQ6VXNlcjEwMzcyNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1037262?v=4","gravatar_id":"","url":"https://api.github.com/users/vincentparrett","html_url":"https://github.com/vincentparrett","followers_url":"https://api.github.com/users/vincentparrett/followers","following_url":"https://api.github.com/users/vincentparrett/following{/other_user}","gists_url":"https://api.github.com/users/vincentparrett/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentparrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentparrett/subscriptions","organizations_url":"https://api.github.com/users/vincentparrett/orgs","repos_url":"https://api.github.com/users/vincentparrett/repos","events_url":"https://api.github.com/users/vincentparrett/events{/privacy}","received_events_url":"https://api.github.com/users/vincentparrett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2018-11-14T23:43:46Z","updated_at":"2018-11-20T13:51:47Z","closed_at":null,"author_association":"NONE","body":"- [x] I tried using the `@types/xxxx` package and had problems.\r\n- [x] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript\r\n- [x] I have a question that is inappropriate for [StackOverflow](https://stackoverflow.com/).  \r\n- [x] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the author\r\n  - Authors: @Igorbek @Igmat @Lavoaster\r\n\r\nUsing \r\ntypescript  3.1.6\r\nstyled-components 4.1.1\r\n@types/styled-components 4.1.0\r\n\r\nTheme definition as shown [in the documentation for styled-components](https://www.styled-components.com/docs/api#define-a-theme-interface) no longer works with the 4.1.0 types.\r\n\r\n`\r\nERROR in [at-loader] ./src/theme/styled.ts:67:5\r\n    TS2352: Conversion of type 'typeof import(\"I:/vsoftui/node_modules/@types/styled-components/index\")' to type 'ThemedStyledComponentsModule<ITheme>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.\r\n  Types of property 'createGlobalStyle' are incompatible.\r\n    Type '{ (cssObject: Properties<string | number>): GlobalStyleComponent<{}, DefaultTheme>; <P = {}>(strings: TemplateStringsArray, ...interpolations: Interpolation<ThemedStyledProps<P, DefaultTheme>>[]): GlobalStyleComponent<...>; <P = {}>(func: InterpolationFunction<...>): GlobalStyleComponent<...>; }' is not comparable to type '{ (cssObject: Properties<string | number>): GlobalStyleComponent<{}, ITheme>; <P = {}>(strings: TemplateStringsArray, ...interpolations: Interpolation<ThemedStyledProps<P, ITheme>>[]): GlobalStyleComponent<...>; <P = {}>(func: InterpolationFunction<...>): GlobalStyleComponent<...>; }'.\r\n      Type 'GlobalStyleComponent<{}, DefaultTheme>' is not comparable to type 'GlobalStyleComponent<{}, ITheme>'.\r\n        Type 'DefaultTheme' is not comparable to type 'ITheme'.\r\n          Property 'buttons' is missing in type 'DefaultTheme'.`\r\n\r\nReverting to the 4.0.3 types seems to still work, at least it compiles.  \r\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/440280231","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30536#issuecomment-440280231","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30536","id":440280231,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDI4MDIzMQ==","user":{"login":"JeroenReumkens","id":2969573,"node_id":"MDQ6VXNlcjI5Njk1NzM=","avatar_url":"https://avatars2.githubusercontent.com/u/2969573?v=4","gravatar_id":"","url":"https://api.github.com/users/JeroenReumkens","html_url":"https://github.com/JeroenReumkens","followers_url":"https://api.github.com/users/JeroenReumkens/followers","following_url":"https://api.github.com/users/JeroenReumkens/following{/other_user}","gists_url":"https://api.github.com/users/JeroenReumkens/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenReumkens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenReumkens/subscriptions","organizations_url":"https://api.github.com/users/JeroenReumkens/orgs","repos_url":"https://api.github.com/users/JeroenReumkens/repos","events_url":"https://api.github.com/users/JeroenReumkens/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenReumkens/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T13:51:47Z","updated_at":"2018-11-20T13:51:47Z","author_association":"NONE","body":"A quick solution for anyone who doesn't want to change a lot right now -> Revert to 4.0.3 and add it as a fixed version in your package.json."}}
{"actor":{"display_login":"JeroenReumkens"}}