@h3ravel/http 11.1.0 → 11.2.1

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/dist/index.d.cts CHANGED
@@ -1,8 +1,26 @@
1
+ import { Application, ConsoleCommand, ServiceProvider } from "@h3ravel/core";
1
2
  import { DotNestedKeys, DotNestedValue, HttpContext, HttpContext as HttpContext$1, IMiddleware, IRequest, IResponse } from "@h3ravel/shared";
2
- import { Application, ServiceProvider } from "@h3ravel/core";
3
3
  import { EventHandlerRequest, H3Event } from "h3";
4
4
  import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
5
5
 
6
+ //#region src/Commands/FireCommand.d.ts
7
+ declare class FireCommand extends ConsoleCommand {
8
+ /**
9
+ * The name and signature of the console command.
10
+ *
11
+ * @var string
12
+ */
13
+ protected signature: string;
14
+ /**
15
+ * The console command description.
16
+ *
17
+ * @var string
18
+ */
19
+ protected description: string;
20
+ handle(): Promise<void>;
21
+ protected fire(): Promise<void>;
22
+ }
23
+ //#endregion
6
24
  //#region src/Middleware.d.ts
7
25
  declare abstract class Middleware implements IMiddleware {
8
26
  abstract handle(context: HttpContext, next: () => Promise<unknown>): Promise<unknown>;
@@ -40,7 +58,7 @@ declare class Request implements IRequest {
40
58
  * Gets route parameters.
41
59
  * @returns An object containing route parameters.
42
60
  */
43
- readonly params: NonNullable<H3Event["context"]["params"]>;
61
+ readonly params: NonNullable<H3Event['context']['params']>;
44
62
  /**
45
63
  * Gets query parameters.
46
64
  * @returns An object containing query parameters.
@@ -219,5 +237,5 @@ declare class Response implements IResponse {
219
237
  getEvent<K extends DotNestedKeys<H3Event>>(key: K): DotNestedValue<H3Event, K>;
220
238
  }
221
239
  //#endregion
222
- export { ApiResource, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
240
+ export { ApiResource, FireCommand, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
223
241
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,8 +1,26 @@
1
+ import { Application, ConsoleCommand, ServiceProvider } from "@h3ravel/core";
1
2
  import { DotNestedKeys, DotNestedValue, HttpContext, HttpContext as HttpContext$1, IMiddleware, IRequest, IResponse } from "@h3ravel/shared";
2
3
  import { EventHandlerRequest, H3Event } from "h3";
3
- import { Application, ServiceProvider } from "@h3ravel/core";
4
4
  import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
5
5
 
6
+ //#region src/Commands/FireCommand.d.ts
7
+ declare class FireCommand extends ConsoleCommand {
8
+ /**
9
+ * The name and signature of the console command.
10
+ *
11
+ * @var string
12
+ */
13
+ protected signature: string;
14
+ /**
15
+ * The console command description.
16
+ *
17
+ * @var string
18
+ */
19
+ protected description: string;
20
+ handle(): Promise<void>;
21
+ protected fire(): Promise<void>;
22
+ }
23
+ //#endregion
6
24
  //#region src/Middleware.d.ts
7
25
  declare abstract class Middleware implements IMiddleware {
8
26
  abstract handle(context: HttpContext, next: () => Promise<unknown>): Promise<unknown>;
@@ -40,7 +58,7 @@ declare class Request implements IRequest {
40
58
  * Gets route parameters.
41
59
  * @returns An object containing route parameters.
42
60
  */
43
- readonly params: NonNullable<H3Event["context"]["params"]>;
61
+ readonly params: NonNullable<H3Event['context']['params']>;
44
62
  /**
45
63
  * Gets query parameters.
46
64
  * @returns An object containing query parameters.
@@ -219,5 +237,5 @@ declare class Response implements IResponse {
219
237
  getEvent<K extends DotNestedKeys<H3Event>>(key: K): DotNestedValue<H3Event, K>;
220
238
  }
221
239
  //#endregion
222
- export { ApiResource, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
240
+ export { ApiResource, FireCommand, HttpContext, HttpServiceProvider, JsonResource, LogRequests, Middleware, Request, Resource, Response };
223
241
  //# sourceMappingURL=index.d.ts.map