Skip to content

Commit

Permalink
Fix wrong return type of err
Browse files Browse the repository at this point in the history
  • Loading branch information
unleashy committed Jun 2, 2021
1 parent 25ee99e commit 6f7a4b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.2] - 2021-06-02

### Changed

- Fix wrong return type of `err`

## [0.3.1] - 2021-05-31

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/parsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function ok<T>(output: T): Ok<T> {
export function err<Name extends string, Args extends unknown[]>(
name: Name,
args: Args
): { ok: false; name: Name; args: Args } {
): Err<Name, Args> {
return { ok: false, name, args };
}

Expand Down

0 comments on commit 6f7a4b8

Please sign in to comment.