Patch Changes
-
#4770
c2ad9ee
Thanks @gcanti! - Fixes a bug where non existing properties were allowed in themake
constructor of aSchema.Class
, closes #4767.Example
import { Schema } from "effect" class A extends Schema.Class<A>("A")({ a: Schema.String }) {} A.make({ a: "a", // @ts-expect-error: Object literal may only specify known properties, and 'b' does not exist in type '{ readonly a: string; }'.ts(2353) b: "b" })
-
#4735
9c68654
Thanks @suddenlyGiovanni! - ImproveNumber
module with comprehensive TsDocs and type-level tests