File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
core/services/relationship Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { RelationVO, ArchiveVO } from '@models';
33import { AccountService } from '@shared/services/account/account.service' ;
44import { ApiService } from '@shared/services/api/api.service' ;
55import { RelationResponse } from '@shared/services/api/index.repo' ;
6- import Fuse , { IFuseOptions } from 'fuse.js' ;
6+ import Fuse from 'fuse.js' ;
77import { find , remove } from 'lodash' ;
88
99const REFRESH_THRESHOLD = 2 * 60 * 1000 ;
@@ -16,7 +16,7 @@ export class RelationshipService {
1616 private lastUpdated : Date ;
1717 private currentArchive : ArchiveVO ;
1818
19- private fuseOptions : IFuseOptions < RelationVO > = {
19+ private fuseOptions : Fuse . IFuseOptions < RelationVO > = {
2020 keys : [ 'RelationArchiveVO.fullName' ] ,
2121 threshold : 0.1 ,
2222 } ;
Original file line number Diff line number Diff line change @@ -2,21 +2,21 @@ import { Injectable } from '@angular/core';
22import { ApiService } from '@shared/services/api/api.service' ;
33import { DataService } from '@shared/services/data/data.service' ;
44import { ItemVO , TagVOData } from '@models' ;
5- import Fuse , { IFuseOptions } from 'fuse.js' ;
5+ import Fuse from 'fuse.js' ;
66import { Observable } from 'rxjs' ;
77import { SearchResponse } from '@shared/services/api/index.repo' ;
88import { TagsService } from '@core/services/tags/tags.service' ;
99
1010@Injectable ( )
1111export class SearchService {
12- private fuseOptions : IFuseOptions < ItemVO > = {
12+ private fuseOptions : Fuse . IFuseOptions < ItemVO > = {
1313 keys : [ 'displayName' ] ,
1414 threshold : 0.1 ,
1515 ignoreLocation : true ,
1616 } ;
1717 private fuse = new Fuse ( [ ] , this . fuseOptions ) ;
1818
19- private tagsFuseOptions : IFuseOptions < TagVOData > = {
19+ private tagsFuseOptions : Fuse . IFuseOptions < TagVOData > = {
2020 keys : [ 'name' ] ,
2121 threshold : 0.1 ,
2222 ignoreLocation : true ,
You can’t perform that action at this time.
0 commit comments