@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
17 lines (16 loc) • 609 B
TypeScript
export interface SyntaxSuggestion {
trigger: string;
snippet: string;
icon?: string;
documentation?: string;
}
export declare const SYNTAX_SUGGESTIONS: SyntaxSuggestion[];
export declare abstract class SuggestionService {
abstract getSuggestions(): typeof SYNTAX_SUGGESTIONS;
abstract addCustomSuggestion(suggestion: typeof SYNTAX_SUGGESTIONS[number]): void;
}
export declare class DefaultSuggestionService implements SuggestionService {
private suggestions;
getSuggestions(): SyntaxSuggestion[];
addCustomSuggestion(suggestion: typeof SYNTAX_SUGGESTIONS[number]): void;
}