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

Function tsPath

ark/aot/declare.ts:687–687  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

685 `${file}: warning: ${name} is declared with any where its type refers to itself, which TypeScript can't write. Bind the Type, Scope or Module it holds to a top-level const, export each class its definition names, or annotate ${name}.`
686
687export const tsPath = (path: string): string => path.split("\\").join("/")
688
689export const writeNoTsconfigMessage = (cwd: string): string =>
690 `No tsconfig.json is in ${cwd} or a directory above it. Create ${join(cwd, "tsconfig.json")}, as { "compilerOptions": { "rootDir": "src", "outDir": "dist" }, "include": ["src"] }, or name the one tsc builds with as --tsconfig, or as "tsconfig" in ark.json.`

Callers 8

nativeOverlayFsFunction · 0.90
canonicalConfigPathFunction · 0.70
commonDirOfFunction · 0.70
mergeDeclarationResultsFunction · 0.70
addOverlayForProjectFunction · 0.70
sourceRootOfFunction · 0.70
elidedMessageOfFunction · 0.70
createOverlayHostFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected