mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
serverless: add more type definitions
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import Serverless = require("../index");
|
||||
|
||||
// tslint:disable-next-line:no-unnecessary-class
|
||||
declare abstract class Plugin {
|
||||
constructor(serverless: Serverless, options: Serverless.Options)
|
||||
}
|
||||
|
||||
export = Plugin;
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import Serverless = require("../index");
|
||||
import Plugin = require("./plugin");
|
||||
|
||||
declare class PluginManager {
|
||||
constructor(serverless: Serverless)
|
||||
|
||||
setCliOptions(options: Serverless.Options): void;
|
||||
setCliCommands(commands: {}): void;
|
||||
|
||||
addPlugin(plugin: typeof Plugin): void;
|
||||
loadAllPlugins(servicePlugins: {}): void;
|
||||
loadPlugins(plugins: {}): void;
|
||||
loadCorePlugins(): void;
|
||||
loadServicePlugins(servicePlugins: {}): void;
|
||||
loadCommand(pluginName: string, details: {}, key: string): {};
|
||||
loadCommands(pluginInstance: Plugin): void;
|
||||
|
||||
cliOptions: {};
|
||||
cliCommands: {};
|
||||
serverless: Serverless;
|
||||
plugins: Plugin[];
|
||||
commands: {};
|
||||
hooks: {};
|
||||
deprecatedEvents: {};
|
||||
}
|
||||
|
||||
export = PluginManager;
|
||||
Vendored
+11
-8
@@ -4,6 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import Service = require("./classes/Service");
|
||||
import PluginManager = require("./classes/PluginManager");
|
||||
import YamlParser = require("./classes/YamlParser");
|
||||
import AwsProvider = require("./plugins/aws/provider/awsProvider");
|
||||
|
||||
@@ -39,18 +40,20 @@ declare class Serverless {
|
||||
getVersion(): string;
|
||||
|
||||
cli: {
|
||||
log(message: string): null
|
||||
log(message: string): null;
|
||||
};
|
||||
|
||||
providers: {};
|
||||
utils: {};
|
||||
variables: {};
|
||||
yamlParser: YamlParser;
|
||||
pluginManager: PluginManager;
|
||||
|
||||
config: Serverless.Config;
|
||||
yamlParser: YamlParser;
|
||||
serverlessDirPath: string;
|
||||
|
||||
service: {
|
||||
getServiceName(): string
|
||||
getAllFunctions(): string[]
|
||||
|
||||
custom: {}
|
||||
};
|
||||
service: Service;
|
||||
version: string;
|
||||
}
|
||||
|
||||
export = Serverless;
|
||||
|
||||
Reference in New Issue
Block a user