mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
12 lines
312 B
TypeScript
12 lines
312 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>;
|