This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/src/content/repositories/FindRepository.ts
2019-05-22 20:30:20 +09:00

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