feat: @discordjs/proxy (#7925)

Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com>
This commit is contained in:
DD
2022-06-04 14:26:25 +03:00
committed by GitHub
parent e518c8a137
commit 1ba2d2a898
26 changed files with 925 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
import type { IncomingMessage, ServerResponse } from 'node:http';
/**
* Represents a potentially awaitable value
*/
export type Awaitable<T> = T | PromiseLike<T>;
/**
* Represents a simple HTTP request handler
*/
export type RequestHandler = (req: IncomingMessage, res: ServerResponse) => Awaitable<void>;