vovk 3.0.0-draft.310 → 3.0.0-draft.312
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/cjs/types.d.ts +1 -1
- package/mjs/types.d.ts +1 -1
- package/package.json +1 -1
package/cjs/types.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export type DecoratorOptions = {
|
|
|
77
77
|
export type RouteHandler = ((req: VovkRequest, params: Record<string, string>) => Response | Promise<Response> | Iterable<unknown> | AsyncIterable<unknown>) & {
|
|
78
78
|
_options?: DecoratorOptions;
|
|
79
79
|
};
|
|
80
|
-
export interface VovkRequest<BODY =
|
|
80
|
+
export interface VovkRequest<BODY extends KnownAny = null, QUERY extends KnownAny = null, PARAMS extends KnownAny = null> extends Omit<NextRequest, 'json' | 'nextUrl'> {
|
|
81
81
|
json: () => Promise<BODY>;
|
|
82
82
|
nextUrl: Omit<NextRequest['nextUrl'], 'searchParams'> & {
|
|
83
83
|
searchParams: Omit<NextRequest['nextUrl']['searchParams'], 'get' | 'getAll' | 'entries' | 'forEach' | 'keys' | 'values'> & {
|
package/mjs/types.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export type DecoratorOptions = {
|
|
|
77
77
|
export type RouteHandler = ((req: VovkRequest, params: Record<string, string>) => Response | Promise<Response> | Iterable<unknown> | AsyncIterable<unknown>) & {
|
|
78
78
|
_options?: DecoratorOptions;
|
|
79
79
|
};
|
|
80
|
-
export interface VovkRequest<BODY =
|
|
80
|
+
export interface VovkRequest<BODY extends KnownAny = null, QUERY extends KnownAny = null, PARAMS extends KnownAny = null> extends Omit<NextRequest, 'json' | 'nextUrl'> {
|
|
81
81
|
json: () => Promise<BODY>;
|
|
82
82
|
nextUrl: Omit<NextRequest['nextUrl'], 'searchParams'> & {
|
|
83
83
|
searchParams: Omit<NextRequest['nextUrl']['searchParams'], 'get' | 'getAll' | 'entries' | 'forEach' | 'keys' | 'values'> & {
|