balda 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.cts CHANGED
@@ -1618,7 +1618,7 @@ declare class Router {
1618
1618
  body?: RequestSchema;
1619
1619
  query?: RequestSchema;
1620
1620
  all?: RequestSchema;
1621
- }, swaggerOptions?: SwaggerRouteOptions, responses?: Record<number, RequestSchema>): void;
1621
+ }, swaggerOptions?: SwaggerRouteOptions, responses?: Record<number, RequestSchema>, allowUpdate?: boolean): void;
1622
1622
  /**
1623
1623
  * Find the matching route for the given HTTP method and path.
1624
1624
  * Returns the resolved middleware chain, handler, extracted params, and response schemas; or null if not found.
@@ -1780,7 +1780,11 @@ declare class Server<H extends NodeHttpClient = NodeHttpClient> implements Serve
1780
1780
  setNotFoundHandler(notFoundHandler?: ServerRouteHandler): void;
1781
1781
  beforeStart(hook: ServerHook): void;
1782
1782
  listen(cb?: ServerListenCallback): void;
1783
- waitUntilListening(): Promise<void>;
1783
+ waitUntilListening(): Promise<{
1784
+ port: number;
1785
+ host: string;
1786
+ url: string;
1787
+ }>;
1784
1788
  /**
1785
1789
  * Closes the server and frees the port
1786
1790
  * This method is idempotent and can be called multiple times safely
@@ -2564,7 +2568,11 @@ interface ServerInterface {
2564
2568
  * Use `listen` instead if you want to initialize the server without blocking the event loop
2565
2569
  * @warning All routes defined with decorators are defined on this method just before the server starts listening for requests
2566
2570
  */
2567
- waitUntilListening: () => Promise<void>;
2571
+ waitUntilListening: () => Promise<{
2572
+ port: number;
2573
+ host: string;
2574
+ url: string;
2575
+ }>;
2568
2576
  /**
2569
2577
  * Closes the server and frees the port
2570
2578
  * This method is idempotent and can be called multiple times safely
package/lib/index.d.ts CHANGED
@@ -1618,7 +1618,7 @@ declare class Router {
1618
1618
  body?: RequestSchema;
1619
1619
  query?: RequestSchema;
1620
1620
  all?: RequestSchema;
1621
- }, swaggerOptions?: SwaggerRouteOptions, responses?: Record<number, RequestSchema>): void;
1621
+ }, swaggerOptions?: SwaggerRouteOptions, responses?: Record<number, RequestSchema>, allowUpdate?: boolean): void;
1622
1622
  /**
1623
1623
  * Find the matching route for the given HTTP method and path.
1624
1624
  * Returns the resolved middleware chain, handler, extracted params, and response schemas; or null if not found.
@@ -1780,7 +1780,11 @@ declare class Server<H extends NodeHttpClient = NodeHttpClient> implements Serve
1780
1780
  setNotFoundHandler(notFoundHandler?: ServerRouteHandler): void;
1781
1781
  beforeStart(hook: ServerHook): void;
1782
1782
  listen(cb?: ServerListenCallback): void;
1783
- waitUntilListening(): Promise<void>;
1783
+ waitUntilListening(): Promise<{
1784
+ port: number;
1785
+ host: string;
1786
+ url: string;
1787
+ }>;
1784
1788
  /**
1785
1789
  * Closes the server and frees the port
1786
1790
  * This method is idempotent and can be called multiple times safely
@@ -2564,7 +2568,11 @@ interface ServerInterface {
2564
2568
  * Use `listen` instead if you want to initialize the server without blocking the event loop
2565
2569
  * @warning All routes defined with decorators are defined on this method just before the server starts listening for requests
2566
2570
  */
2567
- waitUntilListening: () => Promise<void>;
2571
+ waitUntilListening: () => Promise<{
2572
+ port: number;
2573
+ host: string;
2574
+ url: string;
2575
+ }>;
2568
2576
  /**
2569
2577
  * Closes the server and frees the port
2570
2578
  * This method is idempotent and can be called multiple times safely