Skip to content

Commit

Permalink
fix(d.ts): fix the compile error of option-t.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed Feb 22, 2016
1 parent d8d4cd2 commit 9e7618d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,13 @@

## x.y.z

## 0.16.3

### Bug fix

- Fix the compile error of `option-t.d.ts`. ([PR106](https://github.com/saneyuki/option-t.js/pull/106))
- This catches up [pr105](https://github.com/saneyuki/option-t.js/pull/105)

## 0.16.2

### Bug fix
Expand Down
12 changes: 6 additions & 6 deletions option-t.d.ts
Expand Up @@ -34,12 +34,12 @@ declare module 'option-t' {
/**
* Return whether the self is `Some<T>` or not.
*/
isSome: this is Some<T>;
isSome: boolean;

/**
* Return whether the self is `None` or not.
*/
isNone: this is None<T>;
isNone: boolean;

/**
* Return the inner `T` of a `Some<T>`.
Expand Down Expand Up @@ -189,8 +189,8 @@ declare module 'option-t' {

class Some<T> extends OptionBase implements OptionMethods<T> {
constructor(val: T);
isSome: this is Some<T>;
isNone: this is None<T>;
isSome: boolean;
isNone: boolean;
unwrap(): T;
unwrapOr(def: T): T;
unwrapOrElse(fn: () => T): T;
Expand All @@ -209,8 +209,8 @@ declare module 'option-t' {

class None<T> extends OptionBase implements OptionMethods<T> {
constructor();
isSome: this is Some<T>;
isNone: this is None<T>;
isSome: boolean;
isNone: boolean;
unwrap(): T;
unwrapOr(def: T): T;
unwrapOrElse(fn: () => T): T;
Expand Down

0 comments on commit 9e7618d

Please sign in to comment.