Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

TypeScript error with activated strictNullChecks compiler option #154

Merged
merged 2 commits into from
Aug 3, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export default class Chromeless<T extends any> implements Promise<T> {
readonly [Symbol.toStringTag]: 'Promise'

then<U>(
onFulfill: (value: T) => U | PromiseLike<U>,
onReject?: (error: any) => U | PromiseLike<U>,
onFulfill?: ((value: T) => U | PromiseLike<U>) | null,
onReject?: ((error: any) => U | PromiseLike<U>) | null,
): Promise<U> {
return this.lastReturnPromise.then(onFulfill, onReject) as Promise<U>
}
Expand Down