@types/serverless
Advanced tools
Comparing version
@@ -33,4 +33,17 @@ import Serverless = require('../index'); | ||
interface Logging { | ||
log: { | ||
error: (text: string) => void; | ||
warning: (text: string) => void; | ||
notice: (text: string) => void; | ||
info: (text: string) => void; | ||
debug: (text: string) => void; | ||
verbose: (text: string) => void; | ||
success: (text: string) => void; | ||
}; | ||
writeText: (text: string | string[]) => void; | ||
} | ||
interface PluginStatic { | ||
new (serverless: Serverless, options: Serverless.Options): Plugin; | ||
new (serverless: Serverless, options: Serverless.Options, logging: Logging): Plugin; | ||
} | ||
@@ -37,0 +50,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// Type definitions for serverless 1.78 | ||
// Type definitions for serverless 3.0 | ||
// Project: https://github.com/serverless/serverless#readme | ||
@@ -88,2 +88,5 @@ // Definitions by: Hassan Khan <https://github.com/hassankhan> | ||
cli: { | ||
/** | ||
* @deprecated starting from Serverless V3, this method is deprecated, see https://www.serverless.com/framework/docs/guides/plugins/cli-output | ||
*/ | ||
log(message: string, entity?: string, options?: Serverless.LogOptions): null; | ||
@@ -90,0 +93,0 @@ }; |
{ | ||
"name": "@types/serverless", | ||
"version": "1.78.44", | ||
"version": "3.0.0", | ||
"description": "TypeScript definitions for serverless", | ||
@@ -58,4 +58,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serverless", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6d6cbed3ce2bc840925409e3e102f181c394a992b600132448dab10e832e9442", | ||
"typesPublisherContentHash": "b9fd49e1e2497ae65c97f157fae56685cf3cebf45592e892baf15bcfa94e00f2", | ||
"typeScriptVersion": "3.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 25 Jan 2022 02:01:35 GMT | ||
* Last updated: Thu, 03 Feb 2022 19:01:26 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
35758
1.7%897
1.7%