From 9e91208e249d3d53e4178ef81ec205d24718a7c6 Mon Sep 17 00:00:00 2001 From: lsurma <34690782+lsurma@users.noreply.github.com> Date: Tue, 25 Aug 2020 23:35:58 +0200 Subject: [PATCH] Changes in loadSuggestions function signature This should fix errors/warning from typescript, as "triggeredBy" parameter is missing in "loadSuggestions" function signature, but in fact is passed --- src/components/ReactMde.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ReactMde.tsx b/src/components/ReactMde.tsx index f45177ba..36e5fc95 100644 --- a/src/components/ReactMde.tsx +++ b/src/components/ReactMde.tsx @@ -43,7 +43,7 @@ export interface ReactMdeProps { readOnly?: boolean; disablePreview?: boolean; suggestionTriggerCharacters?: string[]; - loadSuggestions?: (text: string) => Promise; + loadSuggestions?: (text: string, triggeredBy: string) => Promise; childProps?: ChildProps; paste?: PasteOptions; l18n?: L18n;