Skip to content

suggestCloseId

suggestCloseId<TCandidate>(input, candidates, options?): TCandidate | null

Defined in: wp-typia-project-tools/src/runtime/id-suggestions.ts:50

Suggest the closest known id for a user-provided CLI value.

This helper is intentionally generic so command-specific validation can keep its own wording and special-case handling while sharing typo thresholds.

TCandidate extends string

string

readonly TCandidate[]

SuggestCloseIdOptions = {}

TCandidate | null