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.
Type Parameters
Section titled “Type Parameters”TCandidate
Section titled “TCandidate”TCandidate extends string
Parameters
Section titled “Parameters”string
candidates
Section titled “candidates”readonly TCandidate[]
options?
Section titled “options?”Returns
Section titled “Returns”TCandidate | null