@dnax/core 0.63.9 → 0.63.10

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.ts CHANGED
@@ -37,5 +37,4 @@ export {
37
37
  $,
38
38
  contextStorage,
39
39
  Adapter,
40
- serveStatic,
41
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.63.9",
3
+ "version": "0.63.10",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
package/types/index.ts CHANGED
@@ -17,7 +17,7 @@ import type {
17
17
  findParam,
18
18
  updateParams,
19
19
  } from "../driver/mongo/@types";
20
- import type { RouterRoute } from "hono/types";
20
+ import type { HandlerResponse, RouterRoute } from "hono/types";
21
21
  import type { MongoClientOptions } from "mongodb";
22
22
  import type { SearchParams } from "meilisearch";
23
23
  export type Socket = {
@@ -623,11 +623,12 @@ export type routeOption = {
623
623
  io: socketIoType;
624
624
  router: {
625
625
  post: (path: string, clb: (c: Context) => void) => {};
626
- get: (path: string, clb: (c: Context) => void) => {};
626
+ get: (path: string, clb: (c: Context | serveStatic) => void) => {};
627
627
  };
628
628
  }) => any;
629
629
  };
630
630
 
631
+ export type serveStatic = (cf: { root: string }) => void;
631
632
  export type endpointCtx = {
632
633
  enabled: boolean;
633
634
  handler: (ctx: {
@@ -635,7 +636,10 @@ export type endpointCtx = {
635
636
  io: socketIoType;
636
637
  router: {
637
638
  post: (path: string, clb: (c: Context) => void) => {};
638
- get: (path: string, clb: (c: Context) => void) => {};
639
+ get: (
640
+ path: string,
641
+ clb: (c: Context, serveStatic: serveStatic) => void
642
+ ) => {};
639
643
  };
640
644
  }) => any;
641
645
  };