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

Function isOnlyType

ark/aot/graph.ts:1059–1060  ·  view source on GitHub ↗
(kind: KindBits)

Source from the content-addressed store, hash-verified

1057 arg.type === "Literal" || arg.type === "TemplateLiteral" || isOnlyArk(kind)
1058
1059export const isOnlyType = (kind: KindBits): boolean =>
1060 (kind & (kinds.type | kinds.otherArk | kinds.data)) === kinds.type
1061
1062const isFactory = (kind: KindBits): boolean =>
1063 (kind & (kinds.returnsType | kinds.returnsArk)) !== 0

Callers 6

isReadThroughMethod · 0.90
composesCallMethod · 0.90
receiveValueMethod · 0.90
aliasKindOfMethod · 0.85
unavailableReadOfMethod · 0.85
isUnsureReadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected