Skip to content

Commit

Permalink
Changes in loadSuggestions function signature
Browse files Browse the repository at this point in the history
This should fix errors/warning from typescript, as "triggeredBy" parameter is missing in "loadSuggestions" function signature, but in fact is passed
  • Loading branch information
lsurma authored Aug 25, 2020
1 parent 11a5a66 commit 9e91208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReactMde.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface ReactMdeProps {
readOnly?: boolean;
disablePreview?: boolean;
suggestionTriggerCharacters?: string[];
loadSuggestions?: (text: string) => Promise<Suggestion[]>;
loadSuggestions?: (text: string, triggeredBy: string) => Promise<Suggestion[]>;
childProps?: ChildProps;
paste?: PasteOptions;
l18n?: L18n;
Expand Down

0 comments on commit 9e91208

Please sign in to comment.