Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
24
Frontend-Learner/node_modules/srvx/dist/static.d.mts
generated
vendored
Normal file
24
Frontend-Learner/node_modules/srvx/dist/static.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { m as ServerMiddleware } from "./_chunks/types.mjs";
|
||||
|
||||
//#region src/static.d.ts
|
||||
interface ServeStaticOptions {
|
||||
/**
|
||||
* The directory to serve static files from.
|
||||
*/
|
||||
dir: string;
|
||||
/**
|
||||
* The HTTP methods to allow for serving static files.
|
||||
*/
|
||||
methods?: string[];
|
||||
/**
|
||||
* A function to modify the HTML content before serving it.
|
||||
*/
|
||||
renderHTML?: (ctx: {
|
||||
request: Request;
|
||||
html: string;
|
||||
filename: string;
|
||||
}) => Response | Promise<Response>;
|
||||
}
|
||||
declare const serveStatic: (options: ServeStaticOptions) => ServerMiddleware;
|
||||
//#endregion
|
||||
export { ServeStaticOptions, serveStatic };
|
||||
Loading…
Add table
Add a link
Reference in a new issue