mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-09 04:41:06 +00:00
Improve api
- TribufuApi - TribufuBot - TribufuClient - TribufuServer
This commit is contained in:
parent
882e2a631b
commit
5047dada7c
12 changed files with 961 additions and 535 deletions
17
src/http.ts
Normal file
17
src/http.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
export type HeaderMap = {
|
||||
[key: string]: string
|
||||
};
|
||||
|
||||
export type CookieMap = {
|
||||
[key: string]: string;
|
||||
};
|
||||
|
||||
export interface ErrorResponse {
|
||||
error: string;
|
||||
};
|
||||
|
||||
export interface MessageResponse {
|
||||
message: string;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue