argValidator 타입 처리
This commit is contained in:
@@ -7,7 +7,12 @@ type RType = ExtractResponse<BaseAPI>;
|
|||||||
type EType = ExtractError<BaseAPI>;
|
type EType = ExtractError<BaseAPI>;
|
||||||
type QType = ExtractQuery<BaseAPI>;
|
type QType = ExtractQuery<BaseAPI>;
|
||||||
|
|
||||||
|
class Q implements QType {
|
||||||
|
username: string;
|
||||||
|
password: string;
|
||||||
|
}
|
||||||
export class LoginByID extends POST<RType, EType, QType>{
|
export class LoginByID extends POST<RType, EType, QType>{
|
||||||
|
readonly argValidator = undefined;
|
||||||
protected LoginByID = Symbol("LoginByID");//TODO: remove this
|
protected LoginByID = Symbol("LoginByID");//TODO: remove this
|
||||||
protected override async api(query: QType): Promise<RType | EType | true> {
|
protected override async api(query: QType): Promise<RType | EType | true> {
|
||||||
throw new Error("Method not implemented.");
|
throw new Error("Method not implemented.");
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ type EType = ExtractError<BaseAPI>;
|
|||||||
type QType = ExtractQuery<BaseAPI>;
|
type QType = ExtractQuery<BaseAPI>;
|
||||||
|
|
||||||
export class LoginByToken extends POST<RType, EType, QType>{
|
export class LoginByToken extends POST<RType, EType, QType>{
|
||||||
|
readonly argValidator = undefined;
|
||||||
protected LoginByToken = Symbol("LoginByToken");//TODO: remove this
|
protected LoginByToken = Symbol("LoginByToken");//TODO: remove this
|
||||||
protected override async api(query: QType): Promise<RType | EType | true> {
|
protected override async api(query: QType): Promise<RType | EType | true> {
|
||||||
throw new Error("Method not implemented.");
|
throw new Error("Method not implemented.");
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ type EType = ExtractError<BaseAPI>;
|
|||||||
type QType = ExtractQuery<BaseAPI>;
|
type QType = ExtractQuery<BaseAPI>;
|
||||||
|
|
||||||
export class ReqNonce extends GET<RType, EType, QType>{
|
export class ReqNonce extends GET<RType, EType, QType>{
|
||||||
|
readonly argValidator = undefined;
|
||||||
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
|
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
|
||||||
protected override async api(query: QType): Promise<RType | EType | true> {
|
protected override async api(query: QType): Promise<RType | EType | true> {
|
||||||
throw new Error("Method not implemented.");
|
throw new Error("Method not implemented.");
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ type EType = ExtractError<BaseAPI>;
|
|||||||
type QType = ExtractQuery<BaseAPI>;
|
type QType = ExtractQuery<BaseAPI>;
|
||||||
|
|
||||||
export class test extends GET<RType, EType, QType>{
|
export class test extends GET<RType, EType, QType>{
|
||||||
|
readonly argValidator = undefined;
|
||||||
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
|
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
|
||||||
protected override async api(query: QType): Promise<RType | EType | true> {
|
protected override async api(query: QType): Promise<RType | EType | true> {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user