Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arktypeio/arktype
/ functions
Functions
9,097 in github.com/arktypeio/arktype
⨍
Functions
9,097
◇
Types & classes
1,574
↓ 1,197 callers
Method
map
* #### 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 callers
Method
push
(node: Node, module: SourceModule, held: Held)
ark/aot/readers.ts:506
↓ 759 callers
Method
get
* #### 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 callers
Method
filter
* #### 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 callers
Function
join
( segments: segments, delimiter: delimiter )
ark/util/arrays.ts:64
↓ 486 callers
Method
has
(name: string)
ark/aot/strategies.ts:395
↓ 374 callers
Method
test
(s: string)
ark/regex/regex.ts:91
↓ 334 callers
Method
replace
* `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 callers
Method
is
(expected: unknown)
ark/attest/assert/chainableAssertions.ts:88
↓ 310 callers
Function
type
(arg?: any)
ark/extension/arktype.scratch.ts:112
↓ 292 callers
Method
equals
* #### 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 callers
Function
it
(name: string, fn: () => void)
ark/attest/__tests__/snapTemplate.ts:54
↓ 239 callers
Method
set
(key: string, answer: unknown, snapshot: string)
ark/aot/cache.ts:198
↓ 201 callers
Method
parse
(...signature: unknown[])
ark/type/fn.ts:84
↓ 201 callers
Method
snap
()
ark/attest/assert/chainableAssertions.ts:118
↓ 194 callers
Method
find
(value: unknown)
ark/aot/interpreter.ts:2696
↓ 151 callers
Function
scope
()
ark/docs/components/precompile/compile.worker.ts:14
↓ 150 callers
Function
hasArkKind
( value: unknown, kind: kind )
ark/schema/shared/utils.ts:60
↓ 148 callers
Method
sort
(kind: NodeKind, inner: dict)
ark/schema/shared/sets.ts:28
↓ 148 callers
Method
toString
()
ark/schema/shared/issuesLean.ts:222
↓ 144 callers
Method
add
( key: string, module: SourceModule, isSite: boolean, prefix: string )
ark/aot/link.ts:960
↓ 142 callers
Method
allows
(data: unknown)
ark/schema/shared/traversal.ts:828
↓ 138 callers
Function
throwParseError
ark/util/errors.ts:21
↓ 133 callers
Method
set
(key: string, value: v)
ark/util/weak.ts:20
↓ 121 callers
Method
export
()
ark/type/scope.ts:942
↓ 120 callers
Method
type
(t: RawType | undefined)
ark/aot/declareNative.ts:176
↓ 110 callers
Method
exec
(s: string)
ark/regex/regex.ts:93
↓ 110 callers
Method
or
* #### 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 callers
Function
hasDomain
( data: data, kind: domain )
ark/util/domain.ts:16
↓ 103 callers
Method
array
* #### an array of this * * @example * const User = type({ name: "string" }) * // Type<{ name: string }[]> * const Users = User.array()
ark/type/variants/base.ts:433
↓ 97 callers
Method
node
( kind: kind, input: NodeInput<kind>, opts?: BaseParseOptions )
ark/type/scope.ts:907
↓ 94 callers
Method
and
* #### 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 callers
Function
T
(readsBetween: boolean)
ark/type/__tests__/traverse.test.ts:341
↓ 89 callers
Method
from
* #### 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 callers
Method
throws
()
ark/attest/assert/chainableAssertions.ts:202
↓ 84 callers
Function
fromHere
(...joinWith: string[])
ark/fs/fs.ts:117
↓ 82 callers
Method
resolve
( specifier: string, importer: string, isValueImport?: () => boolean )
ark/aot/host.ts:30
↓ 80 callers
Function
memberNameOf
(member: MemberExpression)
ark/aot/graph.ts:6270
↓ 79 callers
Function
unwrapExpression
(node: Node)
ark/aot/scope.ts:709
↓ 78 callers
Method
set
(identifier: string, expression: CoercibleValue)
ark/schema/shared/compile.ts:143
↓ 76 callers
Function
operatorOf
( node: Node )
ark/aot/scope.ts:841
↓ 76 callers
Method
pop
ark/jetbrains/core/src/main/kotlin/io/arktype/jetbrains/textmate/Grammar.kt:71
↓ 75 callers
Method
reduce
( kind: NodeKind, inner: dict, $: BaseScope )
ark/schema/shared/sets.ts:22
↓ 71 callers
Function
printable
(data: unknown)
ark/aot/util.ts:49
↓ 70 callers
Method
has
(o: object)
ark/schema/shared/enWriters.ts:31
↓ 70 callers
Function
hasOwn
(o: object, k: PropertyKey)
ark/aot/util.ts:43
↓ 69 callers
Method
narrow
* #### 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 callers
Method
call
( fn: unknown, receiver: unknown, args: unknown[], node: Node, ctx: Context )
ark/aot/interpreter.ts:2160
↓ 68 callers
Function
resolve
(specifier: string, importer: string)
ark/aot/host.ts:96
↓ 65 callers
Function
throwError
ark/aot/util.ts:7
↓ 64 callers
Method
assert
(data: unknown)
ark/schema/shared/traversal.ts:827
↓ 60 callers
Function
throwInternalError
ark/util/errors.ts:7
↓ 60 callers
Function
walk
(node: Node, visit: (node: Node) => boolean)
ark/aot/scope.ts:878
↓ 58 callers
Method
error
(input: ArkErrorInput)
ark/schema/shared/traversal.ts:387
↓ 58 callers
Method
match
(cases: InternalCases)
ark/type/match.ts:527
↓ 54 callers
Method
toJsonSchema
* #### generate a JSON Schema * * @throws {ToJsonSchema.Error} if this cannot be converted to JSON Schema
ark/type/variants/base.ts:158
↓ 53 callers
Method
add
( kind: kind, l: OperandsByDisjointKind[kind], r: OperandsByDisjointKind[kind], ctx?: DisjointEntryCon
ark/schema/shared/disjoint.ts:54
↓ 53 callers
Method
extends
* #### 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 callers
Method
add
(text: string, value?: object, local = false)
ark/type/standalone/values.ts:69
↓ 52 callers
Function
flatMorph
( o: object, flatMapEntry: (...args: any[]) => listable<GroupableEntry> )
ark/util/flatMorph.ts:79
↓ 51 callers
Function
unwrapChain
(node: Node)
ark/aot/scope.ts:834
↓ 49 callers
Function
isNode
(value: unknown)
ark/schema/shared/utils.ts:65
↓ 46 callers
Method
errors
* #### {@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 callers
Method
toString
()
ark/attest/cache/ts.ts:284
↓ 45 callers
Function
writeFixture
( files: Record<string, string>, root = tempDir() )
ark/aot/__tests__/utils.ts:267
↓ 44 callers
Method
add
(id: string, source: string, mappings?: string)
ark/aot/precompile.ts:2862
↓ 44 callers
Function
contains
(outer: Span, inner: Span)
ark/aot/graph.ts:7602
↓ 44 callers
Method
snippetOf
(span: Span)
ark/aot/module.ts:129
↓ 42 callers
Method
instanceOf
(expected: Constructor)
ark/attest/assert/chainableAssertions.ts:103
↓ 41 callers
Function
assertEquals
( ..._: equals<l, r> extends true ? [] : [never] )
ark/repo/tsCompat/index.ts:11
↓ 41 callers
Method
ref
(value: object | symbol)
ark/schema/units.ts:220
↓ 40 callers
Method
positionOf
(span: Span)
ark/aot/module.ts:120
↓ 40 callers
Method
throwsAndHasTypeError
(matchValue: string | RegExp)
ark/attest/assert/chainableAssertions.ts:210
↓ 39 callers
Method
delete
(key: string)
ark/util/weak.ts:32
↓ 38 callers
Method
line
(statement: string)
ark/schema/shared/compile.ts:129
↓ 37 callers
Method
error
(message: string)
ark/type/parser/reduce/dynamic.ts:70
↓ 37 callers
Method
reject
( node: Node, ctx: Context, problem: string, cause?: DynamicValue, code?: DynamicCode )
ark/aot/interpreter.ts:1008
↓ 36 callers
Function
hashOf
(input: string)
ark/util/strings.ts:125
↓ 36 callers
Method
if
(condition: string, then: (self: this) => this)
ark/schema/shared/compile.ts:147
↓ 35 callers
Method
default
* #### {@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 callers
Function
isWriteTarget
(node: Node)
ark/aot/scope.ts:853
↓ 34 callers
Method
raw
* 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 callers
Method
write
(target: Node, module: SourceModule, held: Held)
ark/aot/readers.ts:1072
↓ 32 callers
Method
at
(key: Key, cases?: InternalCases)
ark/type/match.ts:463
↓ 32 callers
Function
exportNameOf
(node: Node)
ark/aot/scope.ts:966
↓ 32 callers
Function
isFunctionNode
(node: Node)
ark/aot/graph.ts:7143
↓ 32 callers
Method
return
(expression: CoercibleValue = "")
ark/schema/shared/compile.ts:189
↓ 32 callers
Function
tempPath
(...segments: string[])
ark/aot/__tests__/utils.ts:36
↓ 31 callers
Method
close
()
ark/repo/bench/buildTime/measure.ts:28
↓ 31 callers
Function
describe
(T: type.Any)
ark/type/__tests__/locale.test.ts:174
↓ 31 callers
Function
pick
(items: readonly t[])
ark/type/__tests__/deferred/fuzz.ts:54
↓ 30 callers
Function
build
( type: "module" | "commonjs", tsconfig: string, emittedTsconfig = tsconfig )
ark/aot/__tests__/emit.test.ts:36
↓ 30 callers
Method
delete
(key: string)
ark/aot/cache.ts:202
↓ 30 callers
Method
fin
its result: the data, or its errors passed to `onFail` if it has any
ark/schema/shared/traversal.ts:162
↓ 30 callers
Method
getTime
()
ark/type/__tests__/keywords/object.test.ts:30
↓ 28 callers
Method
describe
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 callers
Function
fromJsonSchema
ark/type/fromJsonSchema.ts:41
↓ 28 callers
Method
importOf
(binding: Binding, module: SourceModule)
ark/aot/graph.ts:1458
↓ 28 callers
Function
isPlainContainer
(value: unknown)
ark/aot/builtins.ts:294
↓ 28 callers
Method
pathOf
(id: string)
ark/aot/graph.ts:1232
next →
1–100 of 9,097, ranked by callers