api 구조 변경

This commit is contained in:
2023-08-18 13:11:59 +00:00
parent bfe0b99d44
commit de0b851217
8 changed files with 70 additions and 53 deletions
+5 -6
View File
@@ -1,16 +1,15 @@
import { GET } from "../defs.js";
import type { structure } from "../../apiStructure/sammoRootAPI.js";
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs.js";
import { declProcDecorators } from "../ProcDecorator/base.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)
(declProcDecorators([] as const))
(() => {
export const test = GET<RType, EType, QType>(undefined)(EmptyProcDecorator)(
() => {
throw new Error("Method not implemented.");
});
}
);