think/packages/domains/lib/util.d.ts

18 lines
656 B
TypeScript
Raw Normal View History

2022-04-02 09:57:30 +00:00
import { WikiStatus, WikiUserRole, DocumentStatus, IWiki, IDocument } from './models';
2022-03-11 05:57:55 +00:00
export declare const WIKI_STATUS_LIST: {
value: WikiStatus;
label: string;
}[];
export declare const WIKI_USER_ROLES: {
value: string;
label: string;
}[];
export declare const DOCUMENT_STATUS: {
value: DocumentStatus;
label: string;
}[];
export declare const getWikiStatusText: (wiki: IWiki) => string;
2022-04-02 09:57:30 +00:00
export declare const isPublicWiki: (currentStatus: IWiki['status']) => boolean;
2022-03-11 05:57:55 +00:00
export declare const getWikiUserRoleText: (role: WikiUserRole) => string;
2022-04-02 09:57:30 +00:00
export declare const isPublicDocument: (currentStatus: IDocument['status']) => boolean;