Skip to content

Instantly share code, notes, and snippets.

@gwillz
Created August 23, 2018 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwillz/ad73f5cc0a91de1c1117f00c2c84c6fb to your computer and use it in GitHub Desktop.
Save gwillz/ad73f5cc0a91de1c1117f00c2c84c6fb to your computer and use it in GitHub Desktop.
declare module 'connect-static-file' {
import {Handler} from 'express'
import {SendOptions} from 'send'
interface Options extends SendOptions {
encoded?: string;
headers?: {[key: string]: string};
}
function connectStaticFile(path: string, options?: Options): Handler;
namespace connectStaticFile {
export type StaticFileOptions = Options;
}
export = connectStaticFile;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment