| 12345678910111213141516171819202122232425262728 |
- import { GrowiPluginType, GrowiThemeMetadata, HasObjectId } from '@growi/core';
- export type IGrowiPluginOrigin = {
- url: string,
- ghBranch?: string,
- ghTag?: string,
- }
- export type IGrowiPlugin<M extends IGrowiPluginMeta = IGrowiPluginMeta> = {
- isEnabled: boolean,
- installedPath: string,
- organizationName: string,
- origin: IGrowiPluginOrigin,
- meta: M,
- }
- export type IGrowiPluginMeta = {
- name: string,
- types: GrowiPluginType[],
- desc?: string,
- author?: string,
- }
- export type IGrowiThemePluginMeta = IGrowiPluginMeta & {
- themes: GrowiThemeMetadata[]
- }
- export type IGrowiPluginHasId = IGrowiPlugin & HasObjectId;
|