mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Merge pull request #18872 from chriskrycho/fix-exports-for-RSVP
RSVP: switch to `export =` with `allowSyntheticDefaultExports`.
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
|
||||
@@ -14,10 +14,11 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"ember-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -379,4 +379,4 @@ declare namespace RSVP {
|
||||
export function rethrow<C>(reason: C): void;
|
||||
}
|
||||
|
||||
export default RSVP;
|
||||
export = RSVP;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import RSVP from 'rsvp';
|
||||
import RSVP = require('rsvp');
|
||||
|
||||
let promise1: RSVP.Promise<number, Error> = RSVP.Promise.resolve(1);
|
||||
let promise1a: RSVP.Promise<number, Error> = RSVP.resolve(1);
|
||||
|
||||
@@ -19,4 +19,4 @@
|
||||
"index.d.ts",
|
||||
"rsvp-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user