Skip to content

Commit

Permalink
fix(cdk/a11y): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BobobUnicorn committed Nov 22, 2023
1 parent cce9ba1 commit eb8d1eb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/cdk/a11y/key-manager/typeahead.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import {Subject, Subscription} from 'rxjs';
import {A, Z, ZERO, NINE} from '@angular/cdk/keycodes';
import {debounceTime, filter, map, take, tap} from 'rxjs/operators';
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

import {A, NINE, Z, ZERO} from '@angular/cdk/keycodes';
import {Subject, Observable} from 'rxjs';
import {debounceTime, filter, map, tap} from 'rxjs/operators';

const DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS = 200;

Expand All @@ -24,7 +32,7 @@ export class Typeahead<T extends TypeaheadItem> {
private _skipPredicateFn?: (item: T) => boolean | undefined;

private readonly _selectedItem = new Subject<T>();
readonly selectedItem = this._selectedItem.asObservable();
readonly selectedItem: Observable<T> = this._selectedItem;

constructor(initialItems: T[], config?: TypeaheadConfig<T>) {
const typeAheadInterval =
Expand Down

0 comments on commit eb8d1eb

Please sign in to comment.