Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
29
Frontend-Learner/node_modules/sirv/index.d.mts
generated
vendored
Normal file
29
Frontend-Learner/node_modules/sirv/index.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import type { Stats } from "node:fs";
|
||||
import type { IncomingMessage, ServerResponse } from "node:http";
|
||||
|
||||
type Arrayable<T> = T | T[];
|
||||
|
||||
export type NextHandler = () => void | Promise<void>;
|
||||
|
||||
export type RequestHandler = (
|
||||
req: IncomingMessage,
|
||||
res: ServerResponse,
|
||||
next?: NextHandler,
|
||||
) => void;
|
||||
|
||||
export interface Options {
|
||||
dev?: boolean;
|
||||
etag?: boolean;
|
||||
maxAge?: number;
|
||||
immutable?: boolean;
|
||||
single?: string | boolean;
|
||||
ignores?: false | Arrayable<string | RegExp>;
|
||||
extensions?: string[];
|
||||
dotfiles?: boolean;
|
||||
brotli?: boolean;
|
||||
gzip?: boolean;
|
||||
onNoMatch?: (req: IncomingMessage, res: ServerResponse) => void;
|
||||
setHeaders?: (res: ServerResponse, pathname: string, stats: Stats) => void;
|
||||
}
|
||||
|
||||
export default function (dir?: string, opts?: Options): RequestHandler;
|
||||
Loading…
Add table
Add a link
Reference in a new issue