We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there,
I couldn't find any TypeScript typings and wrote these:
declare module 'serve-handler' { import { IncomingMessage, ServerResponse } from 'http' export interface IHeader { key: string value: string } export interface IRedirect { source: string destination: string } export interface IServeHandlerOptions { public?: string cleanUrls?: boolean | string[], rewrites?: IRedirect[], redirects?: IRedirect[], headers?: IHeader[], directoryListing?: boolean | string[], unlisted?: string[], trailingSlash?: boolean, renderSingle?: boolean, symlinks?: boolean } export default function (request: IncomingMessage, response: ServerResponse, options?: IServeHandlerOptions): void }
Hope these will help others using this library with TypeScript!
The text was updated successfully, but these errors were encountered:
Thanks for the tip! There's also @types/serve-handler on npm.
@types/serve-handler
Sorry, something went wrong.
No branches or pull requests
Hi there,
I couldn't find any TypeScript typings and wrote these:
Hope these will help others using this library with TypeScript!
The text was updated successfully, but these errors were encountered: