@dnax/core 0.63.12 → 0.63.15
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/package.json +1 -1
- package/types/index.ts +5 -8
package/package.json
CHANGED
package/types/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
import type { HandlerResponse, RouterRoute } from "hono/types";
|
|
21
21
|
import type { MongoClientOptions } from "mongodb";
|
|
22
22
|
import type { SearchParams } from "meilisearch";
|
|
23
|
+
import type { serveStatic } from "hono/serve-static";
|
|
23
24
|
export type Socket = {
|
|
24
25
|
enabled: boolean;
|
|
25
26
|
exec: (ctx: { rest: useRest; io: socketIoType }) => void;
|
|
@@ -623,24 +624,20 @@ export type routeOption = {
|
|
|
623
624
|
io: socketIoType;
|
|
624
625
|
router: {
|
|
625
626
|
post: (path: string, clb: (c: Context) => void) => {};
|
|
626
|
-
get: (path: string, clb: (c: Context
|
|
627
|
+
get: (path: string, clb: (c: Context) => void) => {};
|
|
627
628
|
};
|
|
628
629
|
}) => any;
|
|
629
630
|
};
|
|
630
631
|
|
|
631
|
-
export type serveStatic = (cf: { root: string }) => void;
|
|
632
632
|
export type endpointCtx = {
|
|
633
633
|
enabled: boolean;
|
|
634
634
|
handler: (ctx: {
|
|
635
|
-
serveStatic: serveStatic;
|
|
635
|
+
serveStatic: typeof serveStatic;
|
|
636
636
|
rest: InstanceType<typeof useRest>;
|
|
637
637
|
io: socketIoType;
|
|
638
638
|
router: {
|
|
639
639
|
post: (path: string, clb: (c: Context) => any) => {};
|
|
640
|
-
get: (
|
|
641
|
-
path: string,
|
|
642
|
-
clb: (c: Context, serveStatic: serveStatic) => any
|
|
643
|
-
) => {};
|
|
640
|
+
get: (path: string, clb: (c: Context) => any) => {};
|
|
644
641
|
};
|
|
645
642
|
}) => any;
|
|
646
643
|
};
|
|
@@ -652,7 +649,7 @@ export type routeCtx = {
|
|
|
652
649
|
io: socketIoType;
|
|
653
650
|
router: {
|
|
654
651
|
post: (path: string, clb: (c: Context) => void) => {};
|
|
655
|
-
get: (path: string, clb: (c: Context) => void) => {};
|
|
652
|
+
get: (path: string, clb: (c: Context | typeof serveStatic) => void) => {};
|
|
656
653
|
};
|
|
657
654
|
}) => any;
|
|
658
655
|
};
|