mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
34e0ab6100
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
20 lines
947 B
TypeScript
20 lines
947 B
TypeScript
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>;
|
|
}
|