From 6d7bff83ca18734843c8698ce2c57f150cd4a13a Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 20 Jul 2017 16:49:23 +0100 Subject: [PATCH] Update type Completion --- src/autocomplete/Autocompleter.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/autocomplete/Autocompleter.js b/src/autocomplete/Autocompleter.js index 6fadf53a61..7a64fb154c 100644 --- a/src/autocomplete/Autocompleter.js +++ b/src/autocomplete/Autocompleter.js @@ -34,12 +34,9 @@ export type Completion = { component: ?Component, range: SelectionRange, command: ?string, - // An entity applied during the replacement (using draftjs@0.8.1 Entity.create) - entity: ? { - type: string, - mutability: string, - data: ?Object, - }, + // If provided, apply a LINK entity to the completion with the + // data = { url: href }. + href: ?string, }; const PROVIDERS = [