Skip to content

Commit

Permalink
Filter type
Browse files Browse the repository at this point in the history
  • Loading branch information
peimelo committed Jul 8, 2020
1 parent 0b64d46 commit 2e2f382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/hero-filter.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Hero } from './hero.model';
name: 'heroFilter',
})
export class HeroFilterPipe implements PipeTransform {
transform(heroes: Hero[], filter: string): unknown {
transform(heroes: Hero[], filter: string): Hero[] {
const nameFilter = filter.trim().toLowerCase();

if (!nameFilter) {
Expand Down

0 comments on commit 2e2f382

Please sign in to comment.