UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

22 lines (21 loc) 960 B
import { $BaseName, $CurrentEmployeeId } from "@docsvision/webclient/StandardServices"; import { ILocalStorage } from "@docsvision/webclient/System/$LocalStorage"; /** Сервис для работы с localStorage. */ export declare class LocalStorage implements ILocalStorage { private services; private supportsLocalStorageCache; constructor(services: $BaseName & $CurrentEmployeeId); /** @deprecated Use service $LocalStorage */ static SupportsLocalStorage(): boolean; /** @deprecated Use service $LocalStorage */ static SaveData(id: string, obj: any): boolean; /** @deprecated Use service $LocalStorage */ static LoadData(id: string): any; supportsLocalStorage(): any; setData<T>(id: string, obj: T): boolean; getData<T>(id: string): T | null; setItem(id: string, data: string): boolean; getItem(id: string): string | null; removeItem(id: string): void; transformId(id: string): string; }