appos 0.1.23-0 → 0.1.25-0
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/build/exports/server.d.mts +10 -2
- package/build/exports/ui/index.d.ts +298 -298
- package/package.json +1 -1
|
@@ -8311,6 +8311,14 @@ type ResponseMarker<T = any> = {
|
|
|
8311
8311
|
status: number;
|
|
8312
8312
|
data: T;
|
|
8313
8313
|
};
|
|
8314
|
+
/**
|
|
8315
|
+
* Extend Request type for OpenAPI handlers.
|
|
8316
|
+
*/
|
|
8317
|
+
type OpenAPIRequest = Request & AppOSRequest;
|
|
8318
|
+
/**
|
|
8319
|
+
* Extended Locals type for OpenAPI handlers.
|
|
8320
|
+
*/
|
|
8321
|
+
type OpenAPILocals = Express.Locals & AppOSLocals;
|
|
8314
8322
|
/**
|
|
8315
8323
|
* Define typed response builders based on defined response schemas.
|
|
8316
8324
|
*/
|
|
@@ -8331,9 +8339,9 @@ type HandlerParams<TParams extends z.ZodSchema | undefined = undefined, TQuery e
|
|
|
8331
8339
|
description: string;
|
|
8332
8340
|
schema: z.ZodSchema;
|
|
8333
8341
|
}>> = {
|
|
8334
|
-
request:
|
|
8342
|
+
request: OpenAPIRequest;
|
|
8335
8343
|
params: TParams extends z.ZodSchema ? z.infer<TParams> : Record<string, unknown>;
|
|
8336
|
-
context:
|
|
8344
|
+
context: OpenAPILocals;
|
|
8337
8345
|
body: TBody extends z.ZodSchema ? z.infer<TBody> : unknown;
|
|
8338
8346
|
query: TQuery extends z.ZodSchema ? z.infer<TQuery> : Record<string, unknown>;
|
|
8339
8347
|
headers: THeaders extends z.ZodSchema ? z.infer<THeaders> : Record<string, string>;
|