Files
certd/packages/core/pipeline/src/access/api.ts
T
2022-10-27 09:26:32 +08:00

16 lines
403 B
TypeScript

import { Registrable } from "../registry";
import { FormItemProps } from "@fast-crud/fast-crud";
import { accessRegistry } from "./registry";
export type AccessDefine = Registrable & {
input: {
[key: string]: FormItemProps;
};
};
export function IsAccess(define: AccessDefine) {
return function (target: any) {
target.prototype.define = define;
accessRegistry.install(target);
};
}