mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-19 11:29:31 +08:00
✨ Feature(server): add http server for uploading images by a http request
port 37766
This commit is contained in:
17
src/universal/types/types.d.ts
vendored
17
src/universal/types/types.d.ts
vendored
@@ -7,6 +7,23 @@ interface IObjT<T> {
|
||||
[propName: string]: T
|
||||
}
|
||||
|
||||
interface ErrnoException extends Error {
|
||||
errno?: number | string;
|
||||
code?: string;
|
||||
path?: string;
|
||||
syscall?: string;
|
||||
stack?: string;
|
||||
}
|
||||
|
||||
type routeHandler = (ctx: IServerCTX) => Promise<void>
|
||||
|
||||
type IHttpResponse = import('http').ServerResponse
|
||||
|
||||
interface IServerCTX {
|
||||
response: IHttpResponse
|
||||
[propName: string]: any
|
||||
}
|
||||
|
||||
// Image && PicBed
|
||||
interface ImgInfo {
|
||||
buffer?: Buffer
|
||||
|
||||
Reference in New Issue
Block a user