Skip to content

ftld@4.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Apr 21:37
· 35 commits to main since this release
d341ee7

Major Changes

  • 88b7726: Change Result/Task generic order, remove UnknownError class, simplify

    Now instead of having Result<Error, Value>, it will be Result<Value, Error>.

    This makes the happy path less verbose.

    // Before
    const x: Result<unknown, number> = Result.from(() => 1);
    
    // After
    const x: Result<number, unknown> = Result.from(() => 1);
    // which now can be simplified to
    const x: Result<number> = Result.from(() => 1);