@types/koa-static
Advanced tools
Comparing version 3.0.2 to 4.0.0
@@ -1,5 +0,6 @@ | ||
// Type definitions for koa-static 3.0 | ||
// Type definitions for koa-static 4.0 | ||
// Project: https://github.com/koajs/static | ||
// Definitions by: Jerry Chin <https://github.com/hellopao> | ||
// Definitions: https://github.com/hellopao/DefinitelyTyped | ||
// Tomek Łaziuk <https://github.com/tlaziuk> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
@@ -17,36 +18,15 @@ | ||
import * as Koa from "koa"; | ||
import { Middleware } from "koa"; | ||
declare function serve(root: string, opts?: { | ||
/** | ||
* Default file name, defaults to 'index.html' | ||
*/ | ||
index?: boolean | string; | ||
import { SendOptions } from "koa-send"; | ||
/** | ||
* If true, serves after return next(),allowing any downstream middleware to respond first. | ||
*/ | ||
defer?: boolean; | ||
declare function serve(root: string, opts?: serve.Options): Middleware; | ||
/** | ||
* Browser cache max-age in milliseconds. defaults to 0 | ||
*/ | ||
maxage?: number; | ||
declare namespace serve { | ||
interface Options extends SendOptions { | ||
/** If true, serves after return next(), allowing any downstream middleware to respond first. */ | ||
defer?: boolean; | ||
} | ||
} | ||
/** | ||
* Allow transfer of hidden files. defaults to false | ||
*/ | ||
hidden?: boolean; | ||
/** | ||
* Try to serve the gzipped version of a file automatically when gzip is supported by a client and if the requested file with .gz extension exists. defaults to true. | ||
*/ | ||
gzip?: boolean; | ||
/** | ||
* Try to match extensions from passed array to search for file when no extension is sufficed in URL. First found is served. (defaults to `false`) | ||
*/ | ||
extensions?: string[]; | ||
}): Koa.Middleware; | ||
declare namespace serve {} | ||
export = serve; |
{ | ||
"name": "@types/koa-static", | ||
"version": "3.0.2", | ||
"version": "4.0.0", | ||
"description": "TypeScript definitions for koa-static", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "hellopao" | ||
}, | ||
{ | ||
"name": "Tomek Łaziuk", | ||
"url": "https://github.com/tlaziuk", | ||
"githubUsername": "tlaziuk" | ||
} | ||
@@ -21,6 +26,7 @@ ], | ||
"dependencies": { | ||
"@types/koa": "*" | ||
"@types/koa": "*", | ||
"@types/koa-send": "*" | ||
}, | ||
"typesPublisherContentHash": "6842f2593d2bb726e5c4b01185145d66718d05ad2d9ce0defb966cfcd3409603", | ||
"typesPublisherContentHash": "3bd80cbc28c1a00e5804d373b15ac421db18231c1eb649cb94dc05589f083d6f", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 09 Nov 2017 09:38:00 GMT | ||
* Dependencies: koa | ||
* Last updated: Thu, 28 Dec 2017 19:26:51 GMT | ||
* Dependencies: koa, koa-send | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Jerry Chin <https://github.com/hellopao>. | ||
These definitions were written by Jerry Chin <https://github.com/hellopao>, Tomek Łaziuk <https://github.com/tlaziuk>. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3450
2
101653
22
+ Added@types/koa-send@*
+ Added@types/koa-send@4.1.6(transitive)