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

Function writeConfigureAfterTypeMessage

ark/schema/shared/errors.ts:1697–1700  ·  view source on GitHub ↗
(firstType?: string)

Source from the content-addressed store, hash-verified

1695 "configure() must be called before any Type is created, so import the module calling it before any module that creates one"
1696
1697export const writeConfigureAfterTypeMessage = (firstType?: string): string =>
1698 firstType ?
1699 `${configureAfterTypeMessage} (first Type created: ${firstType})`
1700 : configureAfterTypeMessage
1701
1702export const unrenderedLocaleMessage =
1703 'import "arktype/i18n" to write errors in locales other than en'

Callers 3

config.test.tsFile · 0.90
configureSchemaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected