mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-31 16:10:08 +00:00
11 lines
311 B
TypeScript
11 lines
311 B
TypeScript
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>;
|