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

16 lines
349 B
TypeScript
Raw Normal View History

2022-10-26 09:02:47 +08:00
import { Registrable } from "../registry";
2022-10-31 21:27:32 +08:00
import { FormItemProps } from "../d.ts";
2022-10-26 09:02:47 +08:00
2022-12-27 12:32:09 +08:00
export type AccessInputDefine = FormItemProps & {
2022-10-31 21:27:32 +08:00
title: string;
required?: boolean;
};
2022-10-26 09:02:47 +08:00
export type AccessDefine = Registrable & {
2022-12-27 12:32:09 +08:00
inputs?: {
[key: string]: AccessInputDefine;
2022-10-26 09:02:47 +08:00
};
};
2022-11-07 23:31:20 +08:00
export interface IAccessService {
2022-12-29 23:52:51 +08:00
getById(id: any): Promise<any>;
2022-11-07 23:31:20 +08:00
}