MCPcopy Create free account

hub / github.com/arktypeio/arktype / functions

Functions9,097 in github.com/arktypeio/arktype

↓ 1,197 callersMethodmap
* #### copy with each property transformed by a function * * ✅ return `[]` to remove a property, or an array to replace it with several * ⚠️ ret
ark/type/variants/object.ts:248
↓ 838 callersMethodpush
(node: Node, module: SourceModule, held: Held)
ark/aot/readers.ts:506
↓ 759 callersMethodget
* #### the Type at a key, or at a path of up to three keys * * @example * const User = type({ name: "string", address: { city: "string" } }) *
ark/type/variants/object.ts:89
↓ 539 callersMethodfilter
* #### apply a predicate function to input * * ⚠️ the behavior of {@link narrow}, this method's output counterpart, is usually more desirable *
ark/type/variants/base.ts:483
↓ 489 callersFunctionjoin
( segments: segments, delimiter: delimiter )
ark/util/arrays.ts:64
↓ 486 callersMethodhas
(name: string)
ark/aot/strategies.ts:395
↓ 374 callersMethodtest
(s: string)
ark/regex/regex.ts:91
↓ 334 callersMethodreplace
* `errorLens.replace`: the first rule whose matcher matches anywhere in * [message] replaces the WHOLE message with its `message`, after * substit
ark/jetbrains/core/src/main/kotlin/io/arktype/jetbrains/errors/ErrorLens.kt:87
↓ 331 callersMethodis
(expected: unknown)
ark/attest/assert/chainableAssertions.ts:88
↓ 310 callersFunctiontype
(arg?: any)
ark/extension/arktype.scratch.ts:112
↓ 292 callersMethodequals
* #### check if the parsed Type's constraints are identical * * ✅ equal types have identical input and output constraints and transforms * @igno
ark/type/variants/base.ts:636
↓ 263 callersFunctionit
(name: string, fn: () => void)
ark/attest/__tests__/snapTemplate.ts:54
↓ 239 callersMethodset
(key: string, answer: unknown, snapshot: string)
ark/aot/cache.ts:198
↓ 201 callersMethodparse
(...signature: unknown[])
ark/type/fn.ts:84
↓ 201 callersMethodsnap
()
ark/attest/assert/chainableAssertions.ts:118
↓ 194 callersMethodfind
(value: unknown)
ark/aot/interpreter.ts:2696
↓ 151 callersFunctionscope
()
ark/docs/components/precompile/compile.worker.ts:14
↓ 150 callersFunctionhasArkKind
( value: unknown, kind: kind )
ark/schema/shared/utils.ts:60
↓ 148 callersMethodsort
(kind: NodeKind, inner: dict)
ark/schema/shared/sets.ts:28
↓ 148 callersMethodtoString
()
ark/schema/shared/issuesLean.ts:222
↓ 144 callersMethodadd
( key: string, module: SourceModule, isSite: boolean, prefix: string )
ark/aot/link.ts:960
↓ 142 callersMethodallows
(data: unknown)
ark/schema/shared/traversal.ts:828
↓ 138 callersFunctionthrowParseError
ark/util/errors.ts:21
↓ 133 callersMethodset
(key: string, value: v)
ark/util/weak.ts:20
↓ 121 callersMethodexport
()
ark/type/scope.ts:942
↓ 120 callersMethodtype
(t: RawType | undefined)
ark/aot/declareNative.ts:176
↓ 110 callersMethodexec
(s: string)
ark/regex/regex.ts:93
↓ 110 callersMethodor
* #### union with the parsed Type * * ⚠️ a union that could apply different morphs to the same data is a ParseError ({@link https://arktype.io/doc
ark/type/variants/base.ts:595
↓ 108 callersFunctionhasDomain
( data: data, kind: domain )
ark/util/domain.ts:16
↓ 103 callersMethodarray
* #### an array of this * * @example * const User = type({ name: "string" }) * // Type<{ name: string }[]> * const Users = User.array()
ark/type/variants/base.ts:433
↓ 97 callersMethodnode
( kind: kind, input: NodeInput<kind>, opts?: BaseParseOptions )
ark/type/scope.ts:907
↓ 94 callersMethodand
* #### intersect the parsed Type, throwing if the result is unsatisfiable * * @example * // Type<{ foo: number; bar: string }> * const T = typ
ark/type/variants/base.ts:579
↓ 92 callersFunctionT
(readsBetween: boolean)
ark/type/__tests__/traverse.test.ts:341
↓ 89 callersMethodfrom
* #### alias for {@link assert} with typed input * * @example * const User = type({ name: "string" }) * // TypeScript: Type 'number' is not as
ark/type/variants/base.ts:323
↓ 88 callersMethodthrows
()
ark/attest/assert/chainableAssertions.ts:202
↓ 84 callersFunctionfromHere
(...joinWith: string[])
ark/fs/fs.ts:117
↓ 82 callersMethodresolve
( specifier: string, importer: string, isValueImport?: () => boolean )
ark/aot/host.ts:30
↓ 80 callersFunctionmemberNameOf
(member: MemberExpression)
ark/aot/graph.ts:6270
↓ 79 callersFunctionunwrapExpression
(node: Node)
ark/aot/scope.ts:709
↓ 78 callersMethodset
(identifier: string, expression: CoercibleValue)
ark/schema/shared/compile.ts:143
↓ 76 callersFunctionoperatorOf
( node: Node )
ark/aot/scope.ts:841
↓ 76 callersMethodpop
ark/jetbrains/core/src/main/kotlin/io/arktype/jetbrains/textmate/Grammar.kt:71
↓ 75 callersMethodreduce
( kind: NodeKind, inner: dict, $: BaseScope )
ark/schema/shared/sets.ts:22
↓ 71 callersFunctionprintable
(data: unknown)
ark/aot/util.ts:49
↓ 70 callersMethodhas
(o: object)
ark/schema/shared/enWriters.ts:31
↓ 70 callersFunctionhasOwn
(o: object, k: PropertyKey)
ark/aot/util.ts:43
↓ 69 callersMethodnarrow
* #### apply a predicate function to output * * ✅ go-to fallback for validation not composable via built-in types and operators * ✅ runs after a
ark/type/variants/base.ts:508
↓ 68 callersMethodcall
( fn: unknown, receiver: unknown, args: unknown[], node: Node, ctx: Context )
ark/aot/interpreter.ts:2160
↓ 68 callersFunctionresolve
(specifier: string, importer: string)
ark/aot/host.ts:96
↓ 65 callersFunctionthrowError
ark/aot/util.ts:7
↓ 64 callersMethodassert
(data: unknown)
ark/schema/shared/traversal.ts:827
↓ 60 callersFunctionthrowInternalError
ark/util/errors.ts:7
↓ 60 callersFunctionwalk
(node: Node, visit: (node: Node) => boolean)
ark/aot/scope.ts:878
↓ 58 callersMethoderror
(input: ArkErrorInput)
ark/schema/shared/traversal.ts:387
↓ 58 callersMethodmatch
(cases: InternalCases)
ark/type/match.ts:527
↓ 54 callersMethodtoJsonSchema
* #### generate a JSON Schema * * @throws {ToJsonSchema.Error} if this cannot be converted to JSON Schema
ark/type/variants/base.ts:158
↓ 53 callersMethodadd
( kind: kind, l: OperandsByDisjointKind[kind], r: OperandsByDisjointKind[kind], ctx?: DisjointEntryCon
ark/schema/shared/disjoint.ts:54
↓ 53 callersMethodextends
* #### check if this is a subtype of the parsed Type * * ✅ a subtype must include all constraints from the base type * ✅ unlike {@link equals},
ark/type/variants/base.ts:663
↓ 52 callersMethodadd
(text: string, value?: object, local = false)
ark/type/standalone/values.ts:69
↓ 52 callersFunctionflatMorph
( o: object, flatMapEntry: (...args: any[]) => listable<GroupableEntry> )
ark/util/flatMorph.ts:79
↓ 51 callersFunctionunwrapChain
(node: Node)
ark/aot/scope.ts:834
↓ 49 callersFunctionisNode
(value: unknown)
ark/schema/shared/utils.ts:65
↓ 46 callersMethoderrors
* #### {@link ArkErrors} that will be part of this traversal's finalized result * * ✅ will always be empty for a valid traversal
ark/schema/shared/traversal.ts:325
↓ 45 callersMethodtoString
()
ark/attest/cache/ts.ts:284
↓ 45 callersFunctionwriteFixture
( files: Record<string, string>, root = tempDir() )
ark/aot/__tests__/utils.ts:267
↓ 44 callersMethodadd
(id: string, source: string, mappings?: string)
ark/aot/precompile.ts:2862
↓ 44 callersFunctioncontains
(outer: Span, inner: Span)
ark/aot/graph.ts:7602
↓ 44 callersMethodsnippetOf
(span: Span)
ark/aot/module.ts:129
↓ 42 callersMethodinstanceOf
(expected: Constructor)
ark/attest/assert/chainableAssertions.ts:103
↓ 41 callersFunctionassertEquals
( ..._: equals<l, r> extends true ? [] : [never] )
ark/repo/tsCompat/index.ts:11
↓ 41 callersMethodref
(value: object | symbol)
ark/schema/units.ts:220
↓ 40 callersMethodpositionOf
(span: Span)
ark/aot/module.ts:120
↓ 40 callersMethodthrowsAndHasTypeError
(matchValue: string | RegExp)
ark/attest/assert/chainableAssertions.ts:210
↓ 39 callersMethoddelete
(key: string)
ark/util/weak.ts:32
↓ 38 callersMethodline
(statement: string)
ark/schema/shared/compile.ts:129
↓ 37 callersMethoderror
(message: string)
ark/type/parser/reduce/dynamic.ts:70
↓ 37 callersMethodreject
( node: Node, ctx: Context, problem: string, cause?: DynamicValue, code?: DynamicCode )
ark/aot/interpreter.ts:1008
↓ 36 callersFunctionhashOf
(input: string)
ark/util/strings.ts:125
↓ 36 callersMethodif
(condition: string, then: (self: this) => this)
ark/schema/shared/compile.ts:147
↓ 35 callersMethoddefault
* #### {@link https://arktype.io/docs/objects#properties-defaultable | defaultable definition} * * ✅ object defaults can be returned from a functi
ark/type/variants/base.ts:464
↓ 34 callersFunctionisWriteTarget
(node: Node)
ark/aot/scope.ts:853
↓ 34 callersMethodraw
* An alias of `type` with no type-level validation or inference. * * Useful when wrapping `type` or using it to parse a dynamic definition.
ark/type/type.ts:216
↓ 33 callersMethodwrite
(target: Node, module: SourceModule, held: Held)
ark/aot/readers.ts:1072
↓ 32 callersMethodat
(key: Key, cases?: InternalCases)
ark/type/match.ts:463
↓ 32 callersFunctionexportNameOf
(node: Node)
ark/aot/scope.ts:966
↓ 32 callersFunctionisFunctionNode
(node: Node)
ark/aot/graph.ts:7143
↓ 32 callersMethodreturn
(expression: CoercibleValue = "")
ark/schema/shared/compile.ts:189
↓ 32 callersFunctiontempPath
(...segments: string[])
ark/aot/__tests__/utils.ts:36
↓ 31 callersMethodclose
()
ark/repo/bench/buildTime/measure.ts:28
↓ 31 callersFunctiondescribe
(T: type.Any)
ark/type/__tests__/locale.test.ts:174
↓ 31 callersFunctionpick
(items: readonly t[])
ark/type/__tests__/deferred/fuzz.ts:54
↓ 30 callersFunctionbuild
( type: "module" | "commonjs", tsconfig: string, emittedTsconfig = tsconfig )
ark/aot/__tests__/emit.test.ts:36
↓ 30 callersMethoddelete
(key: string)
ark/aot/cache.ts:202
↓ 30 callersMethodfin
its result: the data, or its errors passed to `onFail` if it has any
ark/schema/shared/traversal.ts:162
↓ 30 callersMethodgetTime
()
ark/type/__tests__/keywords/object.test.ts:30
↓ 28 callersMethoddescribe
A line's tokens as `start-end scopes`, so a failure shows the line that differs. */
ark/jetbrains/core/src/test/kotlin/io/arktype/jetbrains/textmate/GoldenTokensTest.kt:21
↓ 28 callersFunctionfromJsonSchema
ark/type/fromJsonSchema.ts:41
↓ 28 callersMethodimportOf
(binding: Binding, module: SourceModule)
ark/aot/graph.ts:1458
↓ 28 callersFunctionisPlainContainer
(value: unknown)
ark/aot/builtins.ts:294
↓ 28 callersMethodpathOf
(id: string)
ark/aot/graph.ts:1232
next →1–100 of 9,097, ranked by callers