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

Function isStringFinite

repos/effect/packages/effect/src/SchemaAST.ts:3628–3640  ·  view source on GitHub ↗
(annotations?: Schema.Annotations.Filter)

Source from the content-addressed store, hash-verified

3626 * ```ts import.meta.vitest
3627 * import { Schema, SchemaAST } from "effect"
3628 *
3629 * const schema = Schema.NumberFromString
3630 * const typeAst = SchemaAST.toType(schema.ast)
3631 * typeAst._tag // => "Number"
3632 * ```
3633 *
3634 * @see {@link toEncoded}
3635 * @see {@link flip}
3636 * @category transforming
3637 * @since 4.0.0
3638 */
3639export const toType = memoizeIdempotent(<A extends AST>(ast: A): A => {
3640 if (ast.encoding) {
3641 return toType(replaceEncoding(ast, undefined))
3642 }
3643 const out: any = ast

Callers 1

SchemaAST.tsFile · 0.85

Calls 1

isPatternFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…