github Effect-TS/effect effect@3.0.3

latest releases: @effect/sql-sqlite-wasm@0.21.1, @effect/sql-sqlite-bun@0.21.8, @effect/sql-libsql@0.9.8...
7 months ago

Patch Changes

  • #2568 a7b4b84 Thanks @tim-smart! - add Match.withReturnType api

    Which can be used to constrain the return type of a match expression.

    import { Match } from "effect";
    
    Match.type<string>().pipe(
      Match.withReturnType<string>(),
      Match.when("foo", () => "foo"), // valid
      Match.when("bar", () => 123), // type error
      Match.else(() => "baz"),
    );

Don't miss a new effect release

NewReleases is sending notifications on new releases.