MCPcopy Create free account
hub / github.com/Effect-TS/effect / Filter

Class Filter

packages/effect/src/SchemaIssue.ts:205–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 * @since 4.0.0
204 */
205export class Filter extends Base {
206 readonly _tag = "Filter"
207 /**
208 * The filter that failed.
209 */
210 readonly filter: SchemaAST.Filter<unknown>
211 /**
212 * The issue that occurred.
213 */
214 readonly issue: Issue
215
216 constructor(
217 /**
218 * The filter that failed.
219 */
220 filter: SchemaAST.Filter<any>,
221 /**
222 * The issue that occurred.
223 */
224 issue: Issue,
225 /**
226 * The present input associated with the issue. It is retained only when
227 * `options.reportInput` is `true`.
228 */
229 input?: unknown,
230 /**
231 * The effective parse options controlling input retention.
232 */
233 options?: SchemaAST.ParseOptions
234 ) {
235 super(input, options)
236 this.filter = filter
237 this.issue = issue
238 }
239}
240
241/**
242 * Represents a schema issue produced when a schema transformation (encode/decode step) fails.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected