Patch Changes
-
#2916
cd7496b
Thanks @gcanti! - Add support forAST.Literal
inSchema.TemplateLiteral
, closes #2913 -
#2915
349a036
Thanks @gcanti! - Align constructors arguments:- Refactor
Class
interface to accept options for disabling validation - Refactor
TypeLiteral
interface to accept options for disabling validation - Refactor
refine
interface to accept options for disabling validation - Refactor
BrandSchema
interface to accept options for disabling validation
Example
import { Schema } from "@effect/schema"; const BrandedNumberSchema = Schema.Number.pipe( Schema.between(1, 10), Schema.brand("MyNumber"), ); BrandedNumberSchema.make(20, { disableValidation: true }); // Bypasses validation and creates the instance without errors
- Refactor
-
Updated dependencies [
8c5d280
,6ba6d26
,3f28bf2
,5817820
]:- effect@3.2.9