mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
feat: @discordjs/proxy (#7925)
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com>
This commit is contained in:
10
packages/proxy/src/util/util.ts
Normal file
10
packages/proxy/src/util/util.ts
Normal 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>;
|
||||
Reference in New Issue
Block a user