argValidator 타입 처리

This commit is contained in:
2023-08-06 13:22:21 +00:00
parent a1502ebc16
commit 3256620276
4 changed files with 8 additions and 0 deletions
+5
View File
@@ -7,7 +7,12 @@ type RType = ExtractResponse<BaseAPI>;
type EType = ExtractError<BaseAPI>;
type QType = ExtractQuery<BaseAPI>;
class Q implements QType {
username: string;
password: string;
}
export class LoginByID extends POST<RType, EType, QType>{
readonly argValidator = undefined;
protected LoginByID = Symbol("LoginByID");//TODO: remove this
protected override async api(query: QType): Promise<RType | EType | true> {
throw new Error("Method not implemented.");
+1
View File
@@ -8,6 +8,7 @@ type EType = ExtractError<BaseAPI>;
type QType = ExtractQuery<BaseAPI>;
export class LoginByToken extends POST<RType, EType, QType>{
readonly argValidator = undefined;
protected LoginByToken = Symbol("LoginByToken");//TODO: remove this
protected override async api(query: QType): Promise<RType | EType | true> {
throw new Error("Method not implemented.");
+1
View File
@@ -8,6 +8,7 @@ type EType = ExtractError<BaseAPI>;
type QType = ExtractQuery<BaseAPI>;
export class ReqNonce extends GET<RType, EType, QType>{
readonly argValidator = undefined;
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
protected override async api(query: QType): Promise<RType | EType | true> {
throw new Error("Method not implemented.");
+1
View File
@@ -8,6 +8,7 @@ type EType = ExtractError<BaseAPI>;
type QType = ExtractQuery<BaseAPI>;
export class test extends GET<RType, EType, QType>{
readonly argValidator = undefined;
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
protected override async api(query: QType): Promise<RType | EType | true> {
return {