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

Function isFactory

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

Source from the content-addressed store, hash-verified

1060 (kind & (kinds.type | kinds.otherArk | kinds.data)) === kinds.type
1061
1062const isFactory = (kind: KindBits): boolean =>
1063 (kind & (kinds.returnsType | kinds.returnsArk)) !== 0
1064
1065export const mayReturnArk = (kind: KindBits): boolean =>
1066 isFactory(kind) || (kind & (kinds.returnsUnsure | kinds.returnsOpaque)) !== 0

Callers 3

mayReturnArkFunction · 0.70
composerOfMethod · 0.70
definesArkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected