Skip to content

Commit

Permalink
fix(sidenav): fix Promise type to match (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
kara authored Sep 7, 2016
1 parent 0ca5ec7 commit 3d5ceab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/sidenav/sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ export class MdSidenav {

if (isOpen) {
if (this._openPromise == null) {
this._openPromise = new Promise((resolve, reject) => {
this._openPromise = new Promise<void>((resolve, reject) => {
this._openPromiseResolve = resolve;
this._openPromiseReject = reject;
});
}
return this._openPromise;
} else {
if (this._closePromise == null) {
this._closePromise = new Promise((resolve, reject) => {
this._closePromise = new Promise<void>((resolve, reject) => {
this._closePromiseResolve = resolve;
this._closePromiseReject = reject;
});
Expand Down

0 comments on commit 3d5ceab

Please sign in to comment.