webcompiler
Version:
Lint, type-check, compile, package and gzip JavaScript (ES6 + Flow static types + JSX), for the browser as well as NodeJS; lint, compile, auto-prefix, minify and gzip SASS.
16 lines (14 loc) • 401 B
JavaScript
/* @flow */
declare module 'serve-static' {
declare function exports(root: string, options?: {
dotfiles?: string;
etag?: boolean;
extensions?: boolean | string[];
fallthrough?: boolean;
index?: any;
lastModified?: boolean;
maxAge?: number | string;
redirect?: boolean;
setHeaders?: (res: Response, path: string, stat: Object) => void;
}): ExpressMiddleware;
}