mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Better type checking
This commit is contained in:
parent
7f9967389d
commit
843d797ded
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ import sdk from '../../../index';
|
|||
import type {Completion} from '../../../autocomplete/Autocompleter';
|
||||
import Promise from 'bluebird';
|
||||
import UserSettingsStore from '../../../UserSettingsStore';
|
||||
import { Room } from 'matrix-js-sdk';
|
||||
|
||||
import Autocompleter from '../../../autocomplete/Autocompleter';
|
||||
|
||||
|
@ -301,5 +302,5 @@ Autocomplete.propTypes = {
|
|||
onConfirm: PropTypes.func.isRequired,
|
||||
|
||||
// The room in which we're autocompleting
|
||||
room: PropTypes.object,
|
||||
room: PropTypes.instanceOf(Room),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue