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

Method constructor

packages/effect/src/SchemaIssue.ts:768–790  ·  view source on GitHub ↗
(
    /**
     * The schema that caused the issue.
     */
    ast: SchemaAST.Union,
    /**
     * The schemas that were successful.
     */
    successes: ReadonlyArray<SchemaAST.AST>,
    /**
     * 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

766 readonly successes: ReadonlyArray<SchemaAST.AST>
767
768 constructor(
769 /**
770 * The schema that caused the issue.
771 */
772 ast: SchemaAST.Union,
773 /**
774 * The schemas that were successful.
775 */
776 successes: ReadonlyArray<SchemaAST.AST>,
777 /**
778 * The present input associated with the issue. It is retained only when
779 * `options.reportInput` is `true`.
780 */
781 input?: unknown,
782 /**
783 * The effective parse options controlling input retention.
784 */
785 options?: SchemaAST.ParseOptions
786 ) {
787 super(input, options)
788 this.ast = ast
789 this.successes = successes
790 }
791}
792
793function makeFilterIssue(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected