refactor(web): dependency management (#2386)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Result, SyncUseCaseInterface } from '@standardnotes/domain-core'
|
||||
import { PrefDefaults, PrefKey } from '@standardnotes/models'
|
||||
import { PreferenceServiceInterface } from '@standardnotes/services'
|
||||
|
||||
export class IsGlobalSpellcheckEnabled implements SyncUseCaseInterface<boolean> {
|
||||
constructor(private preferences: PreferenceServiceInterface) {}
|
||||
|
||||
execute(): Result<boolean> {
|
||||
return Result.ok(this.preferences.getValue(PrefKey.EditorSpellcheck, PrefDefaults[PrefKey.EditorSpellcheck]))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user