From b00a552bdd68b313b1618749484be0587069fde7 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 13 Sep 2017 07:16:41 -0700 Subject: [PATCH] Don't allowSyntheticDefaultImports (#19609) --- types/ember-testing-helpers/ember-testing-helpers-tests.ts | 2 +- types/ember-testing-helpers/index.d.ts | 2 +- types/ember-testing-helpers/tsconfig.json | 3 +-- types/ember/index.d.ts | 2 +- types/ember/tsconfig.json | 3 +-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/types/ember-testing-helpers/ember-testing-helpers-tests.ts b/types/ember-testing-helpers/ember-testing-helpers-tests.ts index 70ff59a2d8..3691e3ede0 100644 --- a/types/ember-testing-helpers/ember-testing-helpers-tests.ts +++ b/types/ember-testing-helpers/ember-testing-helpers-tests.ts @@ -1,4 +1,4 @@ -import RSVP from 'rsvp'; +import RSVP = require('rsvp'); function testAndThen() { const result: RSVP.Promise = andThen(() => 'some string'); diff --git a/types/ember-testing-helpers/index.d.ts b/types/ember-testing-helpers/index.d.ts index e45d844487..33231a0b65 100644 --- a/types/ember-testing-helpers/index.d.ts +++ b/types/ember-testing-helpers/index.d.ts @@ -10,7 +10,7 @@ /// -import RSVP from 'rsvp'; +import RSVP = require('rsvp'); type KeyEventType = 'keydown' | 'keyup' | 'keypress'; type WaitResult = RSVP.Promise; diff --git a/types/ember-testing-helpers/tsconfig.json b/types/ember-testing-helpers/tsconfig.json index cd7634bd25..aaf474ecba 100644 --- a/types/ember-testing-helpers/tsconfig.json +++ b/types/ember-testing-helpers/tsconfig.json @@ -14,8 +14,7 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/ember/index.d.ts b/types/ember/index.d.ts index 56b21e7405..c69832e367 100644 --- a/types/ember/index.d.ts +++ b/types/ember/index.d.ts @@ -10,7 +10,7 @@ // Capitalization is intentional: this makes it much easier to re-export RSVP on // the Ember namespace. -import Rsvp from 'rsvp'; +import Rsvp = require('rsvp'); declare namespace EmberStates { interface Transition { diff --git a/types/ember/tsconfig.json b/types/ember/tsconfig.json index fbc4052a08..b73838d20e 100644 --- a/types/ember/tsconfig.json +++ b/types/ember/tsconfig.json @@ -14,8 +14,7 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts",