75674df502
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
23 lines
601 B
TypeScript
23 lines
601 B
TypeScript
interface WriteStream {
|
|
write(s: string): void;
|
|
on(s: string, callback: () => void): void;
|
|
end(): void;
|
|
}
|
|
export declare class StringStream implements WriteStream {
|
|
private content;
|
|
write(s: string): void;
|
|
on(): void;
|
|
end(): void;
|
|
toString(): string;
|
|
}
|
|
export declare class CodePrinter {
|
|
private writeStream;
|
|
private indentString;
|
|
private cIndent;
|
|
constructor(writeStream?: WriteStream, indentString?: string);
|
|
writeln(s?: string, dIndent?: number): void;
|
|
write(s: string): void;
|
|
tab(x: number): void;
|
|
end(): Promise<void>;
|
|
}
|
|
export {};
|