MCPcopy Create free account
hub / github.com/arktypeio/arktype / exportKindOf

Function exportKindOf

ark/aot/graph.ts:985–989  ·  view source on GitHub ↗
(name: ArkExportName)

Source from the content-addressed store, hash-verified

983)
984
985const exportKindOf = (name: ArkExportName): KindBits =>
986 isRuntimeExport(name) || name in errorReaders ? kinds.data
987 : name === "type" ? kinds.otherArk | kinds.returnsType | kinds.returnsArk
988 : name === "codec" || name === "fromJsonSchema" ? typeMethod
989 : kinds.otherArk | kinds.returnsArk
990
991// e.g. a Type for `T.in`, a method for `T.and`, data for `T.expression`
992const memberKindOf = (objectKind: KindBits, name: unknown): KindBits => {

Callers 1

targetKindOfMethod · 0.85

Calls 1

isRuntimeExportFunction · 0.85

Tested by

no test coverage detected