MCPcopy Create free account
hub / github.com/effect-app/libs / wrapPropertyKeyIssue

Function wrapPropertyKeyIssue

repos/effect/packages/effect/src/SchemaAST.ts:1795–1824  ·  view source on GitHub ↗
(
  s: {
    readonly oinput: Option.Option<unknown>
    readonly options: ParseOptions
    issues: Array<SchemaIssue.Issue> | undefined
  },
  ast: AST,
  key: PropertyKey,
  exit: Exit.Failure<any, SchemaIssue.Issue>
)

Source from the content-addressed store, hash-verified

1793 getParser() {
1794 return fromRefinement(this, Predicate.isString)
1795 }
1796 /** @internal */
1797 matchPart(s: string, options: ParseOptions): string | undefined {
1798 const checks = this.checks
1799 return checks && !options.disableChecks && collectIssues(checks, s, undefined, this, options) ? undefined : s
1800 }
1801 /** @internal */
1802 getExpected(): string {
1803 return "string"
1804 }
1805}
1806
1807/**
1808 * Provides the singleton {@link String} AST instance.
1809 *
1810 * **When to use**
1811 *
1812 * Use as the shared `SchemaAST` node for unconstrained JavaScript strings.
1813 *
1814 * @see {@link String} for the AST node class
1815 * @see {@link isString} for narrowing an AST to a string node
1816 *
1817 * @category constructors
1818 * @since 4.0.0
1819 */
1820export const string = new String()
1821
1822/**
1823 * AST node matching any `number` value (including `NaN`, `Infinity`,
1824 * `-Infinity`).
1825 *
1826 * **Details**
1827 *

Callers 2

stepFunction · 0.85
getParserMethod · 0.85

Calls 3

pushMethod · 0.80
mapMethod · 0.65
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…