mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
16 lines
403 B
TypeScript
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);
|
|
};
|
|
}
|