@chaff/drowsy-server
Version:
Server library for Drowsy
12 lines (8 loc) • 302 B
TypeScript
import { Server, RequestListener } from "http";
declare function DrowsyServer(): DrowsyServer.Impl;
declare namespace DrowsyServer {
type Impl = Server & {
[method in "get" | "post" | "put" | "patch" | "delete"]: (url: string, handler: RequestListener) => void;
};
}
export = DrowsyServer;