@types/serverless
Advanced tools
Comparing version 1.72.2 to 1.72.3
{ | ||
"name": "@types/serverless", | ||
"version": "1.72.2", | ||
"version": "1.72.3", | ||
"description": "TypeScript definitions for serverless", | ||
@@ -42,4 +42,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "74bdd2aeb424ed0815b9a15278ebdf1819efa3889783ec2450a84dffcf2ffeb4", | ||
"typesPublisherContentHash": "854461953eea1ebe940fefa24c599bb259e418818b1aa4141d3ed4acd7872374", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -268,8 +268,29 @@ import Serverless = require('../../../index'); | ||
interface HttpCors { | ||
origins?: string | string[]; | ||
headers?: string | string[]; | ||
allowCredentials?: boolean; | ||
maxAge?: number; | ||
cacheControl?: string; | ||
} | ||
interface HttpRequestParametersValidation { | ||
querystrings?: { [key: string]: boolean }; | ||
headers?: { [key: string]: boolean }; | ||
paths?: { [key: string]: boolean }; | ||
} | ||
interface HttpRequestValidation { | ||
parameters?: HttpRequestParametersValidation; | ||
schema?: { [key: string]: string }; | ||
} | ||
interface Http { | ||
path: string; | ||
method: string; | ||
cors?: boolean; | ||
cors?: boolean | HttpCors; | ||
private?: boolean; | ||
async?: boolean; | ||
authorizer?: HttpAuthorizer; | ||
request?: HttpRequestValidation; | ||
} | ||
@@ -276,0 +297,0 @@ |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 11 Jun 2020 18:28:40 GMT | ||
* Last updated: Mon, 22 Jun 2020 07:10:37 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
24635
725