add more type annotations
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
8398e83d33
commit
3b245ee678
|
@ -31,7 +31,7 @@ import {ICompletion, ISelectionRange} from "./Autocompleter";
|
|||
|
||||
const ROOM_REGEX = /\B#\S*/g;
|
||||
|
||||
function score(query, space) {
|
||||
function score(query: string, space: string) {
|
||||
const index = space.indexOf(query);
|
||||
if (index === -1) {
|
||||
return Infinity;
|
||||
|
@ -40,7 +40,7 @@ function score(query, space) {
|
|||
}
|
||||
}
|
||||
|
||||
function matcherObject(room, displayedAlias, matchName = "") {
|
||||
function matcherObject(room: Room, displayedAlias: string, matchName = "") {
|
||||
return {
|
||||
room,
|
||||
matchName,
|
||||
|
|
Loading…
Reference in New Issue