@effect/schema
Advanced tools
Comparing version 0.19.3 to 0.20.0
292
AST.d.ts
@@ -620,158 +620,3 @@ /** | ||
*/ | ||
export declare const mergeAnnotations: (ast: AST, annotations: Annotated["annotations"]) => { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "StringKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "SymbolKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "TemplateLiteral"; | ||
head: string; | ||
spans: readonly [TemplateLiteralSpan, ...TemplateLiteralSpan[]]; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Declaration"; | ||
typeParameters: ReadonlyArray<AST>; | ||
type: AST; | ||
decode: (...typeParameters: ReadonlyArray<AST>) => (input: any, options?: ParseOptions) => ParseResult<any>; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Literal"; | ||
literal: LiteralValue; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "UniqueSymbol"; | ||
symbol: symbol; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "UndefinedKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "VoidKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "NeverKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "UnknownKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "AnyKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "NumberKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "BooleanKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "BigIntKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "ObjectKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Enums"; | ||
enums: ReadonlyArray<readonly [string, string | number]>; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Tuple"; | ||
elements: ReadonlyArray<Element>; | ||
rest: Option<RA.NonEmptyReadonlyArray<AST>>; | ||
isReadonly: boolean; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "TypeLiteral"; | ||
propertySignatures: ReadonlyArray<PropertySignature>; | ||
indexSignatures: ReadonlyArray<IndexSignature>; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Union"; | ||
types: readonly [AST, AST, ...Array<AST>]; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Lazy"; | ||
f: () => AST; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Refinement"; | ||
from: AST; | ||
decode: (input: any, options?: ParseOptions) => ParseResult<any>; | ||
isReversed: boolean; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
[x: symbol]: unknown; | ||
}; | ||
_tag: "Transform"; | ||
from: AST; | ||
to: AST; | ||
decode: (input: any, options?: ParseOptions) => ParseResult<any>; | ||
encode: (input: any, options?: ParseOptions) => ParseResult<any>; | ||
propertySignatureTransformations: ReadonlyArray<PropertySignatureTransformation>; | ||
}; | ||
export declare const mergeAnnotations: (ast: AST, annotations: Annotated["annotations"]) => AST; | ||
/** | ||
@@ -782,136 +627,3 @@ * Adds an annotation, potentially overwriting the existing annotation with the specified id. | ||
*/ | ||
export declare const setAnnotation: (ast: AST, id: PropertyKey, value: unknown) => { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "StringKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "SymbolKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "TemplateLiteral"; | ||
head: string; | ||
spans: readonly [TemplateLiteralSpan, ...TemplateLiteralSpan[]]; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Declaration"; | ||
typeParameters: ReadonlyArray<AST>; | ||
type: AST; | ||
decode: (...typeParameters: ReadonlyArray<AST>) => (input: any, options?: ParseOptions) => ParseResult<any>; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Literal"; | ||
literal: LiteralValue; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "UniqueSymbol"; | ||
symbol: symbol; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "UndefinedKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "VoidKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "NeverKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "UnknownKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "AnyKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "NumberKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "BooleanKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "BigIntKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "ObjectKeyword"; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Enums"; | ||
enums: ReadonlyArray<readonly [string, string | number]>; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Tuple"; | ||
elements: ReadonlyArray<Element>; | ||
rest: Option<RA.NonEmptyReadonlyArray<AST>>; | ||
isReadonly: boolean; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "TypeLiteral"; | ||
propertySignatures: ReadonlyArray<PropertySignature>; | ||
indexSignatures: ReadonlyArray<IndexSignature>; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Union"; | ||
types: readonly [AST, AST, ...Array<AST>]; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Lazy"; | ||
f: () => AST; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Refinement"; | ||
from: AST; | ||
decode: (input: any, options?: ParseOptions) => ParseResult<any>; | ||
isReversed: boolean; | ||
} | { | ||
annotations: { | ||
[x: string]: unknown; | ||
}; | ||
_tag: "Transform"; | ||
from: AST; | ||
to: AST; | ||
decode: (input: any, options?: ParseOptions) => ParseResult<any>; | ||
encode: (input: any, options?: ParseOptions) => ParseResult<any>; | ||
propertySignatureTransformations: ReadonlyArray<PropertySignatureTransformation>; | ||
}; | ||
export declare const setAnnotation: (ast: AST, id: PropertyKey, value: unknown) => AST; | ||
/** | ||
@@ -918,0 +630,0 @@ * Adds a rest element to the end of a tuple, or throws an exception if the rest element is already present. |
{ | ||
"name": "@effect/schema", | ||
"version": "0.19.3", | ||
"version": "0.20.0", | ||
"license": "MIT", | ||
@@ -11,3 +11,3 @@ "repository": { | ||
"@effect/data": "^0.12.2", | ||
"@effect/io": "^0.25.2", | ||
"@effect/io": "^0.26.0", | ||
"fast-check": "^3.8.1" | ||
@@ -14,0 +14,0 @@ }, |
@@ -1038,3 +1038,3 @@ /** | ||
*/ | ||
export const mergeAnnotations = (ast: AST, annotations: Annotated["annotations"]) => ({ | ||
export const mergeAnnotations = (ast: AST, annotations: Annotated["annotations"]): AST => ({ | ||
...ast, | ||
@@ -1049,3 +1049,3 @@ annotations: { ...ast.annotations, ...annotations } | ||
*/ | ||
export const setAnnotation = (ast: AST, id: PropertyKey, value: unknown) => ({ | ||
export const setAnnotation = (ast: AST, id: PropertyKey, value: unknown): AST => ({ | ||
...ast, | ||
@@ -1052,0 +1052,0 @@ annotations: { ...ast.annotations, [id]: value } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
911212
17230
+ Added@effect/io@0.26.2(transitive)
- Removed@effect/io@0.25.13(transitive)
Updated@effect/io@^0.26.0