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

Method constructor

packages/effect/src/SchemaIssue.ts:271–293  ·  view source on GitHub ↗
(
    /**
     * The schema that caused the issue.
     */
    ast: SchemaAST.AST,
    /**
     * The issue that occurred.
     */
    issue: Issue,
    /**
     * The present input associated with the issue. It is retained only when
     * `options.reportInput` is `true`.
     */
    input?: unknown,
    /**
     * The effective parse options controlling input retention.
     */
    options?: SchemaAST.ParseOptions
  )

Source from the content-addressed store, hash-verified

269 readonly issue: Issue
270
271 constructor(
272 /**
273 * The schema that caused the issue.
274 */
275 ast: SchemaAST.AST,
276 /**
277 * The issue that occurred.
278 */
279 issue: Issue,
280 /**
281 * The present input associated with the issue. It is retained only when
282 * `options.reportInput` is `true`.
283 */
284 input?: unknown,
285 /**
286 * The effective parse options controlling input retention.
287 */
288 options?: SchemaAST.ParseOptions
289 ) {
290 super(input, options)
291 this.ast = ast
292 this.issue = issue
293 }
294}
295
296/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected