17 lines
350 B
TypeScript
17 lines
350 B
TypeScript
export default interface FindRepository {
|
|
getLastKeyword(): string | null;
|
|
|
|
setLastKeyword(keyword: string): void;
|
|
}
|
|
|
|
let current: string | null = null;
|
|
|
|
export class FindRepositoryImpl implements FindRepository {
|
|
getLastKeyword(): string | null {
|
|
return current;
|
|
}
|
|
|
|
setLastKeyword(keyword: string): void {
|
|
current = keyword;
|
|
}
|
|
}
|