fix: set return type to Promise<any> for prepareMiddleware (#43292)

This commit is contained in:
Abhijith Vijayan 2020-03-27 21:35:28 +05:30 committed by GitHub
parent 02fa0bd7ee
commit 326d3f6cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,8 @@
// Type definitions for @keystonejs/app-next 5.0
// Type definitions for @keystonejs/app-next 5.1
// Project: https://github.com/keystonejs/keystone
// Definitions by: Kevin Brown <https://github.com/thekevinbrown>
// Timothee Clain <https://github.com/tclain>
// Abhijith Vijayan <https://github.com/abhijithvijayan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
@ -18,7 +19,7 @@ declare module '@keystonejs/app-next' {
class NextApp extends BaseApp {
constructor(options?: NextOptions);
prepareMiddleware({ dev }: { dev?: boolean }): Promise<void>;
prepareMiddleware({ dev, distDir }: { dev?: boolean, distDir?: any }): Promise<any>;
build(): Promise<void>;
}
}