Skip to content

Commit

Permalink
build(tsconfig/src): require es6 Promise shim
Browse files Browse the repository at this point in the history
As part of the migration away from when.js Promises, monapt will require
the ES6 Promise interface to be available.
  • Loading branch information
jklmli committed Mar 17, 2018
1 parent 21a8338 commit 73884b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -52,7 +52,8 @@ to the tests. The result is almost the same API, but more true to the original
### Breaking Changes

- All default exports have been removed [to avoid ambiguity](https://github.com/palantir/tslint/issues/1182#issue-151780453).
- `Future` now depends on `when.Promise`, and uses it internally when representing promises.
- `Future` now depends on native ES6 Promises, and uses them internally when representing promises. Make sure to
include a shim if you plan on using Futures.
- `Future#onFailure` has been removed.
- `Future#onSuccess` has been removed.
- `Future#reject` has been removed.
Expand Down
3 changes: 2 additions & 1 deletion src/tsconfig.json
Expand Up @@ -7,6 +7,7 @@
"sourceMap": true,
"experimentalDecorators": true,
"noEmitOnError": true,
"noUnusedLocals": true
"noUnusedLocals": true,
"lib": ["es2015.promise", "es5", "dom"]
}
}

0 comments on commit 73884b6

Please sign in to comment.