api 타입 시스템 준비 완료

This commit is contained in:
2023-08-06 12:38:38 +00:00
parent 5e216e5f67
commit 257644aff7
6 changed files with 25 additions and 8 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { POST } from "../defs";
import { GET } from "../defs";
import type { structure } from "../../apiStructure/sammoRootAPI";
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
@@ -7,7 +7,7 @@ type RType = ExtractResponse<BaseAPI>;
type EType = ExtractError<BaseAPI>;
type QType = ExtractQuery<BaseAPI>;
export class ReqNonce extends POST<RType, EType, QType>{
export class ReqNonce extends GET<RType, EType, QType>{
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
protected override async api(query: QType): Promise<RType | EType | true> {
throw new Error("Method not implemented.");