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

Function writeDuplicateKeyMessage

ark/schema/structure/structure.ts:1985–1987  ·  view source on GitHub ↗
(
	key: key
)

Source from the content-addressed store, hash-verified

1983 `Key${keys.length === 1 ? "" : "s"} ${keys.map(typeKeyToString).join(", ")} ${keys.length === 1 ? "does" : "do"} not exist on ${o}`
1984
1985export const writeDuplicateKeyMessage = <key extends Key>(
1986 key: key
1987): writeDuplicateKeyMessage<key> => `Duplicate key ${printable(key) as never}`
1988
1989export type writeDuplicateKeyMessage<key extends Key> =
1990 `Duplicate key ${describe<key>}`

Callers 4

props.test.tsFile · 0.90
structure.tsFile · 0.90
engine.test.tsFile · 0.90
constructorMethod · 0.85

Calls 1

printableFunction · 0.90

Tested by

no test coverage detected