mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Glue - Added union types for plugins
This commit is contained in:
@@ -7,9 +7,9 @@ const manifest: Glue.Manifest = {
|
||||
},
|
||||
register: {
|
||||
plugins: [
|
||||
"test-plugin",
|
||||
"./test-plugin.js",
|
||||
{
|
||||
plugin: "./test",
|
||||
plugin: "./test.js",
|
||||
routes: {
|
||||
prefix: "test"
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -24,7 +24,7 @@ export interface Plugin {
|
||||
export interface Manifest {
|
||||
server: ServerOptions;
|
||||
register?: {
|
||||
plugins: string[] | Plugin[]
|
||||
plugins: string[] | Plugin[] | Array<(string|Plugin)>
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user