@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
26 lines (25 loc) • 929 B
TypeScript
import { Store, Event } from 'effector';
export interface IFolderColors {
[key: string]: string;
}
export interface IFolderColor {
id: string;
color: string;
}
/** Cервис предоставляющий информацию о цвете папок. */
export interface IFolderColorsService {
/** Хранилище цвета папок */
$colors: Store<IFolderColors>;
/** Добавить цвет папке */
setColor: Event<IFolderColor>;
/**$FolderColors.ts
* @param folderId идентификатор папки
*
* @returns возвращается адрес папки с ранее зарегистрированным цветом
*/
getFolderUrl: (folderId: string) => string;
}
export declare type $FolderColors = {
folderColors: IFolderColorsService;
};
export declare const $FolderColors: string | ((model?: $FolderColors) => IFolderColorsService);