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

Function writeDeclaredOutsideMessage

ark/aot/declare.ts:704–708  ·  view source on GitHub ↗
(
	path: string,
	root: string
)

Source from the content-addressed store, hash-verified

702 `declare: true needs a bundler that tells a plugin whether its build watches or serves, which ${name} doesn't, so run ark declare after building instead`
703
704export const writeDeclaredOutsideMessage = (
705 path: string,
706 root: string
707): string =>
708 `${path} is declared outside ${root}, where the bundle can't hold it, so set rootDir to a directory holding every module the tsconfig emits`
709
710export type TypeScript = typeof ts & {
711 getCheckFlags: (symbol: ts.Symbol) => number

Callers 2

buildEndFunction · 0.90
unplugin.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected