File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @emotion/styled ' : patch
3
+ ---
4
+
5
+ Renamed default-exported variable in ` @emotion/styled ` to aid inferred import names in auto-import completions in IDEs
Original file line number Diff line number Diff line change 1
1
import { Theme } from '@emotion/react'
2
- import styled from './base'
2
+ import baseStyled from './base'
3
3
import { ReactJSXIntrinsicElements } from './jsx-namespace'
4
4
import { tags } from './tags'
5
5
import {
@@ -33,10 +33,10 @@ export type StyledTags = {
33
33
export interface CreateStyled extends BaseCreateStyled , StyledTags { }
34
34
35
35
// bind it to avoid mutating the original function
36
- const newStyled = styled . bind ( null ) as CreateStyled
36
+ const styled = baseStyled . bind ( null ) as CreateStyled
37
37
38
38
tags . forEach ( tagName => {
39
- ; ( newStyled as any ) [ tagName ] = newStyled ( tagName as keyof typeof newStyled )
39
+ ; ( styled as any ) [ tagName ] = styled ( tagName as keyof typeof styled )
40
40
} )
41
41
42
- export default newStyled
42
+ export default styled
You can’t perform that action at this time.
0 commit comments