fuzzy-rater
Version:
Tooling for fuzzily rating text according to some query
18 lines • 618 B
TypeScript
/**
* A deterministic finite automaton transition
*/
export declare type INormalizedDFATransition<T> = {
/** The ID of the node to go to */
to: string;
/**
* The trigger type:
* - Character: Takes the transition if the character matches
* - Remaining: Takes the transition if none of the other character transitions matched
*/
type: "character" | "remaining";
/** The character to take this transition on */
character?: string;
/** The metadata associated with a transition */
metadata: T;
};
//# sourceMappingURL=INormalizedDFATransition.d.ts.map