github Effect-TS/effect @effect/platform@0.70.3

Patch Changes

  • #4065 7044730 Thanks @KhraksMamtsov! - Ensure the uniqueness of the parameters at the type level

    import { HttpApiEndpoint, HttpApiSchema } from "@effect/platform"
    import { Schema } from "effect"
    
    HttpApiEndpoint.get(
      "test"
    )`/${HttpApiSchema.param("id", Schema.NumberFromString)}/${
      // @ts-expect-error: Argument of type 'Param<"id", typeof NumberFromString>' is not assignable to parameter of type '"Duplicate param :id"'
      HttpApiSchema.param("id", Schema.NumberFromString)
    }`

Don't miss a new effect release

NewReleases is sending notifications on new releases.