Don't allowSyntheticDefaultImports (#19609)

This commit is contained in:
Andy 2017-09-13 07:16:41 -07:00 committed by GitHub
parent 046478a6dd
commit b00a552bdd
5 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
import RSVP from 'rsvp';
import RSVP = require('rsvp');
function testAndThen() {
const result: RSVP.Promise<string, never> = andThen(() => 'some string');

View File

@ -10,7 +10,7 @@
/// <reference types="jquery" />
import RSVP from 'rsvp';
import RSVP = require('rsvp');
type KeyEventType = 'keydown' | 'keyup' | 'keypress';
type WaitResult<T> = RSVP.Promise<T, never>;

View File

@ -14,8 +14,7 @@
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",

View File

@ -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 {

View File

@ -14,8 +14,7 @@
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",