UNPKG

@triliumnext/express-partial-content

Version:

A partial content handler implementation for any readable stream with Express. Based on this blog post: https://www.codeproject.com/Articles/813480/HTTP-Partial-Content-In-Node-js.

7 lines (6 loc) 194 B
import { Request } from "express"; import { Content } from "./Content"; /** * @type {function (Request): Promise<Content>} */ export type ContentProvider = (req: Request) => Promise<Content>;