Skip to content

Commit

Permalink
Removed readonly state from Option and Result properties which are me…
Browse files Browse the repository at this point in the history
…thods and don't need them.
  • Loading branch information
RobDWaller committed Jun 24, 2020
1 parent 004ae38 commit 89bf0de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/option.ts
Expand Up @@ -4,7 +4,7 @@ export type Opt<T> = Some<T> | None;

interface Options<T> {
readonly option: T | null;
readonly unwrap: Unwrap<T>;
unwrap: Unwrap<T>;
}

export class Some<T> implements Options<T> {
Expand Down
6 changes: 3 additions & 3 deletions src/result.ts
Expand Up @@ -6,9 +6,9 @@ interface Is {

export interface Result<T> {
readonly state: T;
readonly unwrap: Unwrap<T>;
readonly isError: Is;
readonly isOk: Is;
unwrap: Unwrap<T>;
isError: Is;
isOk: Is;
}

export class Ok<T> {
Expand Down

0 comments on commit 89bf0de

Please sign in to comment.