@webiny/plugins
Advanced tools
Comparing version 5.41.4-beta.1 to 5.41.4-beta.2
{ | ||
"name": "@webiny/plugins", | ||
"version": "5.41.4-beta.1", | ||
"version": "5.41.4-beta.2", | ||
"main": "index.js", | ||
@@ -23,4 +23,4 @@ "repository": { | ||
"@types/uniqid": "5.3.2", | ||
"@webiny/cli": "5.41.4-beta.1", | ||
"@webiny/project-utils": "5.41.4-beta.1", | ||
"@webiny/cli": "5.41.4-beta.2", | ||
"@webiny/project-utils": "5.41.4-beta.2", | ||
"rimraf": "5.0.5", | ||
@@ -38,3 +38,3 @@ "ttypescript": "1.5.15", | ||
}, | ||
"gitHead": "ff5f3a2431623ef31920b84e2973e90dedaa9e31" | ||
"gitHead": "65e6e862765f638fa3b6a0f8ddac10fc60a43f54" | ||
} |
import { Plugin, PluginCollection } from "./types"; | ||
export type WithName<T extends Plugin> = T & { | ||
name: string; | ||
}; | ||
export declare class PluginsContainer { | ||
@@ -6,6 +9,6 @@ private plugins; | ||
constructor(...args: PluginCollection); | ||
byName<T extends Plugin>(name: T["name"]): T | null; | ||
byType<T extends Plugin>(type: T["type"]): T[]; | ||
atLeastOneByType<T extends Plugin>(type: T["type"]): T[]; | ||
oneByType<T extends Plugin>(type: T["type"]): T; | ||
byName<T extends Plugin>(name: T["name"]): WithName<T> | null; | ||
byType<T extends Plugin>(type: T["type"]): WithName<T>[]; | ||
atLeastOneByType<T extends Plugin>(type: T["type"]): WithName<T>[]; | ||
oneByType<T extends Plugin>(type: T["type"]): WithName<T>; | ||
merge(input: PluginsContainer | PluginCollection): void; | ||
@@ -12,0 +15,0 @@ mergeByType(container: PluginsContainer, type: string): void; |
Sorry, the diff of this file is not supported yet
24763
247