Better type checking

This commit is contained in:
David Baker 2017-11-02 18:17:57 +00:00
parent 7f9967389d
commit 843d797ded

View file

@ -25,6 +25,7 @@ import sdk from '../../../index';
import type {Completion} from '../../../autocomplete/Autocompleter'; import type {Completion} from '../../../autocomplete/Autocompleter';
import Promise from 'bluebird'; import Promise from 'bluebird';
import UserSettingsStore from '../../../UserSettingsStore'; import UserSettingsStore from '../../../UserSettingsStore';
import { Room } from 'matrix-js-sdk';
import Autocompleter from '../../../autocomplete/Autocompleter'; import Autocompleter from '../../../autocomplete/Autocompleter';
@ -301,5 +302,5 @@ Autocomplete.propTypes = {
onConfirm: PropTypes.func.isRequired, onConfirm: PropTypes.func.isRequired,
// The room in which we're autocompleting // The room in which we're autocompleting
room: PropTypes.object, room: PropTypes.instanceOf(Room),
}; };