Skip to content

basalt / cli/src / resolveDevEntry

Function: resolveDevEntry() ​

> resolveDevEntry(candidates, exists): string | undefined

Defined in: cli/src/dev.ts:11

Picks the first candidate that exists. Pure — exists is injected so the resolution is testable without touching disk.

Parameters ​

candidates ​

string[]

exists ​

(path) => boolean

Returns ​

string | undefined

Released under the MIT License.