Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/core/services/relationship/relationship.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { AccountService } from '@shared/services/account/account.service';
import { ApiService } from '@shared/services/api/api.service';
import { RelationResponse } from '@shared/services/api/index.repo';
import Fuse, { IFuseOptions } from 'fuse.js';
import Fuse from 'fuse.js';
import { find, remove } from 'lodash';

const REFRESH_THRESHOLD = 2 * 60 * 1000;
Expand All @@ -16,7 +16,7 @@
private lastUpdated: Date;
private currentArchive: ArchiveVO;

private fuseOptions: IFuseOptions<RelationVO> = {
private fuseOptions: Fuse.IFuseOptions<RelationVO> = {

Check failure on line 19 in src/app/core/services/relationship/relationship.service.ts

View workflow job for this annotation

GitHub Actions / tsc

'Fuse' only refers to a type, but is being used as a namespace here.
keys: ['RelationArchiveVO.fullName'],
threshold: 0.1,
};
Expand Down
6 changes: 3 additions & 3 deletions src/app/search/services/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
import { ApiService } from '@shared/services/api/api.service';
import { DataService } from '@shared/services/data/data.service';
import { ItemVO, TagVOData } from '@models';
import Fuse, { IFuseOptions } from 'fuse.js';
import Fuse from 'fuse.js';
import { Observable } from 'rxjs';
import { SearchResponse } from '@shared/services/api/index.repo';
import { TagsService } from '@core/services/tags/tags.service';

@Injectable()
export class SearchService {
private fuseOptions: IFuseOptions<ItemVO> = {
private fuseOptions: Fuse.IFuseOptions<ItemVO> = {

Check failure on line 12 in src/app/search/services/search.service.ts

View workflow job for this annotation

GitHub Actions / tsc

'Fuse' only refers to a type, but is being used as a namespace here.
keys: ['displayName'],
threshold: 0.1,
ignoreLocation: true,
};
private fuse = new Fuse([], this.fuseOptions);

private tagsFuseOptions: IFuseOptions<TagVOData> = {
private tagsFuseOptions: Fuse.IFuseOptions<TagVOData> = {

Check failure on line 19 in src/app/search/services/search.service.ts

View workflow job for this annotation

GitHub Actions / tsc

'Fuse' only refers to a type, but is being used as a namespace here.
keys: ['name'],
threshold: 0.1,
ignoreLocation: true,
Expand Down
Loading