Improve quality of Typescript types (#10742)
This commit is contained in:
parent
542bf68c63
commit
a4f0b80692
30 changed files with 74 additions and 75 deletions
|
@ -47,7 +47,7 @@ interface IOptions<T extends {}> {
|
|||
*/
|
||||
export default class QueryMatcher<T extends {}> {
|
||||
private _options: IOptions<T>;
|
||||
private _items: Map<string, { object: T; keyWeight: number }[]>;
|
||||
private _items = new Map<string, { object: T; keyWeight: number }[]>();
|
||||
|
||||
public constructor(objects: T[], options: IOptions<T> = { keys: [] }) {
|
||||
this._options = options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue