Files
Shifted/node_modules/graphql/jsutils/suggestionList.d.ts
2026-02-10 01:14:19 +00:00

9 lines
272 B
TypeScript

/**
* Given an invalid input string and a list of valid options, returns a filtered
* list of valid options sorted based on their similarity with the input.
*/
export declare function suggestionList(
input: string,
options: ReadonlyArray<string>,
): Array<string>;