MCPcopy Create free account
hub / github.com/formkit/formkit / getPath

Function getPath

packages/cli/src/theme.ts:581–585  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

579}
580
581function getPath(paths: string[]): string | undefined {
582 const path = paths.shift()
583 if (existsSync(path!)) return path
584 return paths.length ? getPath(paths) : undefined
585}
586
587async function localGeneratedTheme(): Promise<[string, string] | undefined> {
588 const path = determineFilePath('formkit.theme')

Callers 2

determineFilePathFunction · 0.85
localThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected