mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix: set return type to Promise<any> for prepareMiddleware (#43292)
This commit is contained in:
parent
02fa0bd7ee
commit
326d3f6cb2
5
types/keystonejs__app-next/index.d.ts
vendored
5
types/keystonejs__app-next/index.d.ts
vendored
@ -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>;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user