@spirobel/mininext 0.7.3 → 0.7.4

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.
Files changed (2) hide show
  1. package/dist/url.d.ts +2 -2
  2. package/package.json +1 -1
package/dist/url.d.ts CHANGED
@@ -11,9 +11,9 @@ import { html, json, dangerjson, HtmlString } from "./html";
11
11
  import { BasedHtml, type DangerJsonInHtml, type JsonString, type JsonStringValues } from "./html";
12
12
  export type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
13
13
  export type MiniNextRouteHandlerObject<T extends string> = {
14
- [K in HTTPMethod]?: HtmlHandler<unknown, T>;
14
+ [K in HTTPMethod]?: HtmlHandler<unknown, T> | HtmlHandler;
15
15
  };
16
- export type MiniNextRouteValue<T extends string> = HtmlHandler<unknown, T> | MiniNextRouteHandlerObject<T>;
16
+ export type MiniNextRouteValue<T extends string> = HtmlHandler<unknown, T> | HtmlHandler | MiniNextRouteHandlerObject<T>;
17
17
  export type BunRoutes<R extends {
18
18
  [K in keyof R]: RouterTypes.RouteValue<Extract<K, string>>;
19
19
  }> = R;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "clean": "rm -rf ./dist"
12
12
  },
13
13
  "files": ["dist"],
14
- "version": "0.7.3",
14
+ "version": "0.7.4",
15
15
  "devDependencies": {
16
16
  "@types/bun": "^1.2.9"
17
17
  },