Files
certd/packages/core/pipeline/src/access/api.ts
T

14 lines
322 B
TypeScript
Raw Normal View History

2022-10-26 09:02:47 +08:00
import { Registrable } from "../registry";
import { FormItemProps } from "@fast-crud/fast-crud";
export type AccessDefine = Registrable & {
input: {
[key: string]: FormItemProps;
};
};
export function IsAccess(define: AccessDefine) {
return function (target: any) {
2022-10-26 23:29:10 +08:00
target.prototype.define = define;
2022-10-26 09:02:47 +08:00
};
}