suggestionList.d.ts 272 B

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