Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
fixup! chore(TypeScript): Enable 'strictNullChecks' option
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed Apr 26, 2016
1 parent 2eed776 commit e242fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/client/rize/adapter/NotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ function requestPermittion(): Rx.Observable<boolean> {
}

function showNotification(topic: NotifedTopic): Rx.Observable<void> {
let notification: Notification = new (window as any).Notification(topic.title, {
let notification: Notification | void = new (window as any).Notification(topic.title, {
body: topic.body,
icon: topic.icon,
});
const timeout = Rx.Observable.empty<void>().delay(5 * 1000);
const click = Rx.Observable.fromEvent<void>(notification, 'click').take(1);
const click = Rx.Observable.fromEvent<void>(notification!, 'click').take(1);
const close: Rx.Observable<void> = click.race(timeout).do(function(){
notification.close();
notification = null;
notification = undefined;
});
return close.share();
}
2 changes: 1 addition & 1 deletion src/client/rize/rize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class RizeClient {
console.log(data.value);
});

const view = React.createElement(RizeAppView, null);
const view = React.createElement(RizeAppView, undefined);
const mountpoint = document.getElementById('js-mountpoint-app');
ReactDOM.render(view, mountpoint);
}
Expand Down

0 comments on commit e242fef

Please sign in to comment.