@openinc/parse-server-opendash
Version:
Parse Server Cloud Code for open.INC Stack.
13 lines (12 loc) • 575 B
TypeScript
import { FunctionKeys, PermissionInterface } from "..";
/**
* Class for all permissions in parse server.
*/
export declare class RegisteredPermission implements PermissionInterface {
key: string;
label: string;
description: string;
constructor(key: string, label: string, description: string);
get<T extends Exclude<keyof RegisteredPermission, FunctionKeys<RegisteredPermission>>>(attribute: T): (typeof this)[T];
set<T extends Exclude<keyof RegisteredPermission, FunctionKeys<RegisteredPermission>>>(attribute: T, value: (typeof this)[T]): this;
}