Skip to content

Commit

Permalink
Merge pull request #710 from Ailrun/types/remove-synthetic-default-im…
Browse files Browse the repository at this point in the history
…ports

Remove allowSyntheticDefaultImports from typings
  • Loading branch information
Andarist authored Jun 8, 2018
2 parents 034cfc3 + d9c6d68 commit 51d597f
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/create-emotion-styled/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// TypeScript Version: 2.3

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

import {
CreateStyled,
Expand Down
2 changes: 1 addition & 1 deletion packages/create-emotion-styled/types/react.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
// TypeScript Version: 2.3

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

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-emotion-styled/types/test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createEmotion from 'create-emotion';
import React from 'react';
import * as React from 'react';

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

Expand Down
1 change: 0 additions & 1 deletion packages/create-emotion-styled/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "../",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
Expand Down
2 changes: 1 addition & 1 deletion packages/emotion-server/types/tests.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { renderToNodeStream, renderToString } from 'react-dom/server';
import { extractCritical, renderStylesToNodeStream, renderStylesToString } from '../';

Expand Down
1 change: 0 additions & 1 deletion packages/emotion-server/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "../",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
Expand Down
2 changes: 1 addition & 1 deletion packages/emotion-theming/types/tests.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import * as emotionTheming from '../';
// tslint:disable-next-line:no-duplicate-imports
import { ThemeProvider, withTheme, EmotionThemingModule } from '../';
Expand Down
1 change: 0 additions & 1 deletion packages/emotion-theming/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "es2015",
"declaration": true,
"strict": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"jsx": "react",
"lib": ["es6"],
Expand Down
2 changes: 1 addition & 1 deletion packages/emotion/types/tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
caches,
} from '../';
// tslint:disable-next-line:no-implicit-dependencies
import React from 'react';
import * as React from 'react';

flush();

Expand Down
1 change: 0 additions & 1 deletion packages/emotion/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "../",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
Expand Down
4 changes: 3 additions & 1 deletion packages/preact-emotion/types/test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// tslint:disable-next-line:no-implicit-dependencies
import Preact, { h } from 'preact';
import * as Preact from 'preact';
import styled, { flush, CreateStyled } from '../';

const h = Preact.h;

let Component;
let mount;

Expand Down
1 change: 0 additions & 1 deletion packages/preact-emotion/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "../",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-emotion/types/tests.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable-next-line:no-implicit-dependencies
import React from 'react';
import * as React from 'react';
import styled, { flush, CreateStyled } from '../';

let Component;
Expand Down
1 change: 0 additions & 1 deletion packages/react-emotion/types/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "../",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
Expand Down

0 comments on commit 51d597f

Please sign in to comment.