Feedback.d.ts 547 B

1234567891011121314
  1. import { DefaultFeedbackFunction, FeedbackType, MatchEstimated } from './types';
  2. type Matchers = {
  3. [key: string]: DefaultFeedbackFunction;
  4. };
  5. declare class Feedback {
  6. readonly matchers: Matchers;
  7. defaultFeedback: FeedbackType;
  8. constructor();
  9. setDefaultSuggestions(): void;
  10. getFeedback(score: number, sequence: MatchEstimated[]): FeedbackType;
  11. getLongestMatch(sequence: MatchEstimated[]): MatchEstimated;
  12. getMatchFeedback(match: MatchEstimated, isSoleMatch: boolean): FeedbackType | null;
  13. }
  14. export default Feedback;