Skip to content

Commit

Permalink
feat: update initEnvironment method to return a Promise for better as…
Browse files Browse the repository at this point in the history
…ync handling
  • Loading branch information
rsaz committed Dec 3, 2024
1 parent 571ef41 commit 6ae9525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/application-express.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export namespace Server {
* Interface for the WebServer application implementation.
*/
export interface IWebServer {
initEnvironment(environment: Environment, options?: IEnvironment): void;
initEnvironment(environment: Environment, options?: IEnvironment): Promise<void>;

listen(port: number | string, appInfo?: IConsoleMessage): Promise<IWebServerPublic>;

Expand Down

0 comments on commit 6ae9525

Please sign in to comment.