rootAPI to gatewayAPI
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { GET } from "../../defs.js";
|
||||
import type { structure } from "../../../apiStructure/sammoGatewayAPI.js";
|
||||
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../../apiStructure/defs.js";
|
||||
import { EmptyProcDecorator } from "../../../ProcDecorator/base.js";
|
||||
|
||||
type BaseAPI = typeof structure.Login.test;
|
||||
type RType = ExtractResponse<BaseAPI>;
|
||||
type EType = ExtractError<BaseAPI>;
|
||||
type QType = ExtractQuery<BaseAPI>;
|
||||
|
||||
export const test = GET<RType, EType, QType>(undefined)(EmptyProcDecorator)(
|
||||
() => {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user