Migrate util, types, state, sticker-creator to ESLint
This commit is contained in:
parent
372aa44e49
commit
2ade4acd52
115 changed files with 647 additions and 448 deletions
|
@ -1,21 +1,20 @@
|
|||
export function markEverDone() {
|
||||
// @ts-ignore
|
||||
export function markEverDone(): void {
|
||||
window.storage.put('chromiumRegistrationDoneEver', '');
|
||||
}
|
||||
|
||||
export function markDone() {
|
||||
export function markDone(): void {
|
||||
markEverDone();
|
||||
window.storage.put('chromiumRegistrationDone', '');
|
||||
}
|
||||
|
||||
export async function remove() {
|
||||
export async function remove(): Promise<void> {
|
||||
await window.storage.remove('chromiumRegistrationDone');
|
||||
}
|
||||
|
||||
export function isDone() {
|
||||
export function isDone(): boolean {
|
||||
return window.storage.get('chromiumRegistrationDone') === '';
|
||||
}
|
||||
|
||||
export function everDone() {
|
||||
export function everDone(): boolean {
|
||||
return window.storage.get('chromiumRegistrationDoneEver') === '' || isDone();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue