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

Function writeInvalidAmbientEntryMessage

ark/schema/scope.ts:241–245  ·  view source on GitHub ↗
(
	key: string,
	actual: unknown
)

Source from the content-addressed store, hash-verified

239 `ambient must be a Module or a record of Types, Generics, or Modules (was ${printable(actual)})`
240
241export const writeInvalidAmbientEntryMessage = (
242 key: string,
243 actual: unknown
244): string =>
245 `ambient.${key} must be a Type, Generic, or Module (was ${printable(actual)})`
246
247const validateAmbientConfig = (ambient: unknown): void => {
248 if (hasArkKind(ambient, "module")) {

Callers 1

validateAmbientConfigFunction · 0.85

Calls 1

printableFunction · 0.90

Tested by

no test coverage detected