Skip to content

Commit 51d597f

Browse files
authored
Merge pull request #710 from Ailrun/types/remove-synthetic-default-imports
Remove allowSyntheticDefaultImports from typings
2 parents 034cfc3 + d9c6d68 commit 51d597f

File tree

14 files changed

+10
-14
lines changed

14 files changed

+10
-14
lines changed

packages/create-emotion-styled/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// TypeScript Version: 2.3
33

44
import { Emotion, Interpolation as BaseInterpolation } from 'create-emotion';
5-
import React, { ComponentClass, ReactHTML, ReactSVG, Ref, SFC } from 'react';
5+
import * as React from 'react';
66

77
import {
88
CreateStyled,

packages/create-emotion-styled/types/react.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
22
// TypeScript Version: 2.3
33

4-
import React, { ComponentClass, Ref, SFC } from 'react';
4+
import { ComponentClass, Ref, SFC } from 'react';
55
import { ClassInterpolation } from 'create-emotion';
66

77
import {

packages/create-emotion-styled/types/test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import createEmotion from 'create-emotion';
2-
import React from 'react';
2+
import * as React from 'react';
33

44
import createEmotionStyled, { StyledComponent } from '../';
55

packages/create-emotion-styled/types/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
43
"baseUrl": "../",
54
"forceConsistentCasingInFileNames": true,
65
"jsx": "react",

packages/emotion-server/types/tests.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import { renderToNodeStream, renderToString } from 'react-dom/server';
33
import { extractCritical, renderStylesToNodeStream, renderStylesToString } from '../';
44

packages/emotion-server/types/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
43
"baseUrl": "../",
54
"forceConsistentCasingInFileNames": true,
65
"jsx": "react",

packages/emotion-theming/types/tests.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import * as emotionTheming from '../';
33
// tslint:disable-next-line:no-duplicate-imports
44
import { ThemeProvider, withTheme, EmotionThemingModule } from '../';

packages/emotion-theming/types/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"module": "es2015",
55
"declaration": true,
66
"strict": true,
7-
"allowSyntheticDefaultImports": true,
87
"moduleResolution": "node",
98
"jsx": "react",
109
"lib": ["es6"],

packages/emotion/types/tests.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
caches,
1212
} from '../';
1313
// tslint:disable-next-line:no-implicit-dependencies
14-
import React from 'react';
14+
import * as React from 'react';
1515

1616
flush();
1717

packages/emotion/types/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
43
"baseUrl": "../",
54
"forceConsistentCasingInFileNames": true,
65
"jsx": "react",

packages/preact-emotion/types/test.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// tslint:disable-next-line:no-implicit-dependencies
2-
import Preact, { h } from 'preact';
2+
import * as Preact from 'preact';
33
import styled, { flush, CreateStyled } from '../';
44

5+
const h = Preact.h;
6+
57
let Component;
68
let mount;
79

packages/preact-emotion/types/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
43
"baseUrl": "../",
54
"forceConsistentCasingInFileNames": true,
65
"jsx": "react",

packages/react-emotion/types/tests.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// tslint:disable-next-line:no-implicit-dependencies
2-
import React from 'react';
2+
import * as React from 'react';
33
import styled, { flush, CreateStyled } from '../';
44

55
let Component;

packages/react-emotion/types/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
43
"baseUrl": "../",
54
"forceConsistentCasingInFileNames": true,
65
"jsx": "react",

0 commit comments

Comments
 (0)