23 lines
866 B
TypeScript
23 lines
866 B
TypeScript
import { ngGET } from "../defs";
|
|
import type { structure } from "../../apiStructure/sammoRootAPI";
|
|
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs";
|
|
|
|
type BaseAPI = typeof structure.Login.ReqNonce;
|
|
type RType = ExtractResponse<BaseAPI>;
|
|
type EType = ExtractError<BaseAPI>;
|
|
type QType = ExtractQuery<BaseAPI>;
|
|
|
|
/*export class ReqNonce extends GET<RType, EType, QType>{
|
|
readonly argValidator = undefined;
|
|
readonly procDecorator = [] as const;
|
|
protected ReqNonce = Symbol("ReqNonce");//TODO: remove this
|
|
protected override async api(query: QType): Promise<RType | EType | true> {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}*/
|
|
|
|
export const ReqNonce = ngGET<RType, EType, QType>(undefined)([] as const)(
|
|
(query, ctx, req, res) => {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
); |