@types/serverless
Advanced tools
Comparing version 1.18.2 to 1.18.3
@@ -1,11 +0,32 @@ | ||
import Serverless = require("../index"); | ||
import Serverless = require('../index'); | ||
declare namespace Plugin { | ||
interface Hooks { | ||
[event: string]: (...rest: any[]) => any; | ||
} | ||
interface Commands { | ||
[command: string]: { | ||
usage?: string; | ||
lifecycleEvents?: string[]; | ||
commands?: { [command: string]: {} }; | ||
options?: { | ||
[option: string]: { | ||
usage?: string; | ||
required?: boolean; | ||
shortcut?: string; | ||
}; | ||
}; | ||
}; | ||
} | ||
} | ||
declare abstract class Plugin { | ||
hooks: { | ||
[event: string]: Promise<any>; | ||
}; | ||
hooks: Plugin.Hooks; | ||
constructor(serverless: Serverless, options: Serverless.Options) | ||
commands?: Plugin.Commands; | ||
constructor(serverless: Serverless, options: Serverless.Options); | ||
} | ||
export = Plugin; |
@@ -5,10 +5,11 @@ // Type definitions for serverless 1.18 | ||
// Jonathan M. Wilbur <https://github.com/JonathanWilbur> | ||
// Alex Pavlenko <https://github.com/a-pavlenko> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import Service = require("./classes/Service"); | ||
import Plugin = require("./classes/Plugin"); | ||
import PluginManager = require("./classes/PluginManager"); | ||
import Utils = require("./classes/Utils"); | ||
import YamlParser = require("./classes/YamlParser"); | ||
import AwsProvider = require("./plugins/aws/provider/awsProvider"); | ||
import Service = require('./classes/Service'); | ||
import Plugin = require('./classes/Plugin'); | ||
import PluginManager = require('./classes/PluginManager'); | ||
import Utils = require('./classes/Utils'); | ||
import YamlParser = require('./classes/YamlParser'); | ||
import AwsProvider = require('./plugins/aws/provider/awsProvider'); | ||
@@ -36,3 +37,3 @@ declare namespace Serverless { | ||
memorySize?: number; | ||
environment?: { [ name: string ]: string }; | ||
environment?: { [name: string]: string }; | ||
} | ||
@@ -39,0 +40,0 @@ |
{ | ||
"name": "@types/serverless", | ||
"version": "1.18.2", | ||
"version": "1.18.3", | ||
"description": "TypeScript definitions for serverless", | ||
@@ -16,2 +16,7 @@ "license": "MIT", | ||
"githubUsername": "JonathanWilbur" | ||
}, | ||
{ | ||
"name": "Alex Pavlenko", | ||
"url": "https://github.com/a-pavlenko", | ||
"githubUsername": "a-pavlenko" | ||
} | ||
@@ -28,4 +33,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "4fb46d1c810a0c0ddce8e9047ff1e26162b94e1da279a19e42e0d9d1aa4005da", | ||
"typesPublisherContentHash": "f6b2c52d69e42d9cd945a7a7debf181f42bf363485044a2a214541c95bdcaf8f", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for serverless ( https://github.com/serverless/serverless#readme ). | ||
This package contains type definitions for serverless (https://github.com/serverless/serverless#readme). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Mon, 18 Mar 2019 16:03:54 GMT | ||
* Last updated: Fri, 27 Sep 2019 16:15:31 GMT | ||
* Dependencies: none | ||
@@ -18,2 +18,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Hassan Khan <https://github.com/hassankhan>, Jonathan M. Wilbur <https://github.com/JonathanWilbur>. | ||
These definitions were written by Hassan Khan <https://github.com/hassankhan>, Jonathan M. Wilbur <https://github.com/JonathanWilbur>, and Alex Pavlenko <https://github.com/a-pavlenko>. |
8689
183