Archived
1
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
api-ts-gen/dist/utils/StrictTypeParser.d.ts
supmiku39 75674df502 ClientAPI, ServerAPI interface, Schema TS codegen
ClientAPI: use Axios
ServerAPI: use @koa/router
FullDate: wrapped Date only class
APIPromise: enhanced Promise on api response

application/json only(multipart/*, image/*, ... are not supported)
get, post, put, delete, patch only
2020-04-05 00:57:34 +09:00

18 lines
706 B
TypeScript

import { FullDate } from './FullDate';
export declare module StrictTypeParser {
class BadValueError extends Error {
attr: string;
type: string;
value: any;
constructor(attr: string, type: string, value: any);
}
function _number(x: any, attr: string): number;
function _string(x: any, attr: string): string;
function _boolean(x: any, attr: string): boolean;
function _Date(x: any, attr: string): Date;
function _FullDate(x: any, attr: string): FullDate;
function _byte(x: any, attr: string): string;
function _binary(x: any, attr: string): string;
function _Array(x: any, attr: string): Array<any>;
const supportTypes: string[];
}