2021-11-17 04:55:56 +08:00
|
|
|
import PermissionGrid, { PermissionGridEntry } from './PermissionGrid';
|
|
|
|
import ItemList from '../../common/utils/ItemList';
|
|
|
|
import Mithril from 'mithril';
|
|
|
|
export interface IExtensionPermissionGridAttrs {
|
|
|
|
extensionId: string;
|
|
|
|
}
|
|
|
|
export default class ExtensionPermissionGrid<CustomAttrs extends IExtensionPermissionGridAttrs = IExtensionPermissionGridAttrs> extends PermissionGrid<CustomAttrs> {
|
|
|
|
protected extensionId: string;
|
|
|
|
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
|
|
|
|
permissionItems(): ItemList<{
|
|
|
|
label: Mithril.Children;
|
|
|
|
children: PermissionGridEntry[];
|
|
|
|
}>;
|
|
|
|
viewItems(): ItemList<import("./PermissionGrid").PermissionConfig>;
|
|
|
|
startItems(): ItemList<import("./PermissionGrid").PermissionConfig>;
|
|
|
|
replyItems(): ItemList<import("./PermissionGrid").PermissionConfig>;
|
|
|
|
moderateItems(): ItemList<import("./PermissionGrid").PermissionConfig>;
|
|
|
|
scopeControlItems(): ItemList<unknown>;
|
2021-05-13 07:29:46 +08:00
|
|
|
}
|