Skip to content

Commit d79a620

Browse files
committed
Fix fuse options import
The package fuse.js was updated and it seems the way it exports the IFuseOptions has changed and this broke the build for FE. Issue: PER-10382 Fix fuse import
1 parent 06c669b commit d79a620

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/core/services/relationship/relationship.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RelationVO, ArchiveVO } from '@models';
33
import { AccountService } from '@shared/services/account/account.service';
44
import { ApiService } from '@shared/services/api/api.service';
55
import { RelationResponse } from '@shared/services/api/index.repo';
6-
import Fuse, { IFuseOptions } from 'fuse.js';
6+
import Fuse from 'fuse.js';
77
import { find, remove } from 'lodash';
88

99
const 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
};

src/app/search/services/search.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import { Injectable } from '@angular/core';
22
import { ApiService } from '@shared/services/api/api.service';
33
import { DataService } from '@shared/services/data/data.service';
44
import { ItemVO, TagVOData } from '@models';
5-
import Fuse, { IFuseOptions } from 'fuse.js';
5+
import Fuse from 'fuse.js';
66
import { Observable } from 'rxjs';
77
import { SearchResponse } from '@shared/services/api/index.repo';
88
import { TagsService } from '@core/services/tags/tags.service';
99

1010
@Injectable()
1111
export 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,

0 commit comments

Comments
 (0)