mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
import { SearchQueryTypes } from './SearchQueryDTO';
|
|
|
|
export interface IAutoCompleteItem {
|
|
text: string;
|
|
type?: SearchQueryTypes;
|
|
}
|
|
|
|
export class AutoCompleteItem implements IAutoCompleteItem {
|
|
constructor(public text: string, public type: SearchQueryTypes = null) {}
|
|
|
|
equals(other: AutoCompleteItem): boolean {
|
|
return this.text === other.text && this.type === other.type;
|
|
}
|
|
}
|
|
|