mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 10:35:22 +08:00
Merge pull request #25729 from garfty/master
Glue - Fixed compose return type
This commit is contained in:
@@ -7,8 +7,9 @@ const manifest: Glue.Manifest = {
|
||||
},
|
||||
register: {
|
||||
plugins: [
|
||||
"./test-plugin.js",
|
||||
{
|
||||
plugin: "./test",
|
||||
plugin: "./test.js",
|
||||
routes: {
|
||||
prefix: "test"
|
||||
}
|
||||
|
||||
4
types/glue/index.d.ts
vendored
4
types/glue/index.d.ts
vendored
@@ -24,8 +24,8 @@ export interface Plugin {
|
||||
export interface Manifest {
|
||||
server: ServerOptions;
|
||||
register?: {
|
||||
plugins: string[] | Plugin[]
|
||||
plugins: string[] | Plugin[] | Array<(string|Plugin)>
|
||||
};
|
||||
}
|
||||
|
||||
export function compose(manifest: Manifest, options?: Options): Server;
|
||||
export function compose(manifest: Manifest, options?: Options): Promise<Server>;
|
||||
|
||||
Reference in New Issue
Block a user