@server/next 0.28.15 → 0.28.16
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/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/jsx/jsx-runtime.d.ts +12 -0
package/index.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ type Events = Record<string, EventCallback[]> & {
|
|
|
168
168
|
on?: (key: string, cb: (value?: Context & SerializableValue) => void) => void;
|
|
169
169
|
trigger?: (key: string, value?: Partial<Context & SerializableValue>) => void;
|
|
170
170
|
};
|
|
171
|
-
type Context<Params extends Record<string, string> = Record<string, string>, O extends ServerConfig = object> = {
|
|
171
|
+
type Context<Params extends Record<string, string | undefined> = Record<string, string>, O extends ServerConfig = object> = {
|
|
172
172
|
method: Method;
|
|
173
173
|
headers: Record<string, string | string[]>;
|
|
174
174
|
cookies: Record<string, string>;
|
|
@@ -201,7 +201,7 @@ type InlineReply = Response | {
|
|
|
201
201
|
headers?: Headers;
|
|
202
202
|
} | SerializableValue | JSX.Element;
|
|
203
203
|
type Body = InlineReply;
|
|
204
|
-
type Middleware<O extends ServerConfig = object, Params extends Record<string, string> = Record<string, string>> = (ctx: Context<Params, O>) => InlineReply | Promise<InlineReply> | void | Promise<void>;
|
|
204
|
+
type Middleware<O extends ServerConfig = object, Params extends Record<string, string | undefined> = Record<string, string>> = (ctx: Context<Params, O>) => InlineReply | Promise<InlineReply> | void | Promise<void>;
|
|
205
205
|
|
|
206
206
|
type Variables = Record<string, string | string[]>;
|
|
207
207
|
type ExtendError = string | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@server/next",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.16",
|
|
4
4
|
"description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
|
|
5
5
|
"homepage": "https://server-js.com/",
|
|
6
6
|
"repository": "https://github.com/franciscop/server-next.git",
|
package/src/jsx/jsx-runtime.d.ts
CHANGED