furystack-core
Version:
FuryStack framework, Core package
22 lines (21 loc) • 648 B
TypeScript
import { RequestMethod } from "../api/http-models/RequestMethod";
/**
* This class extracts a custom logics of a specific scope having their own Custom Action(s)
*/
export declare class CustomAction<TBody, TReturns> {
readonly name: string;
readonly requestType: RequestMethod;
readonly bodyType: {
new (): TBody;
};
readonly returnsType: {
new (): TReturns;
};
constructor(name: string, requestType: RequestMethod, bodyType: {
new (): TBody;
}, returnsType: {
new (): TReturns;
});
readonly bodyTypeName: string;
readonly returnTypeName: string;
}