fuzzy-rater
Version:
Tooling for fuzzily rating text according to some query
19 lines • 702 B
TypeScript
/**
* A non-deterministic finite automaton transition
*/
export declare type INormalizedNFATransition<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
* - Empty: Always takes the transition, without consuming input
*/
type: "character" | "remaining" | "empty";
/** The character to take this transition on */
character?: string;
/** The metadata associated with a transition */
metadata: T;
};
//# sourceMappingURL=INormalizedNFATransition.d.ts.map