File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { Hono } from "hono" ;
22import { describe , expect , it } from "vitest" ;
3+
34import { cloudFrontViewer } from "./index" ;
45
56describe ( "cloudFrontViewer middleware" , ( ) => {
Original file line number Diff line number Diff line change @@ -3,12 +3,10 @@ export * from "./types/viewer-info";
33export * from "./types/inference" ;
44export * from "./middleware" ;
55
6- import type { CloudFrontViewerConfig } from "./types/config" ;
7- import type { InferCloudFrontViewerInfo } from "./types/inference" ;
86import type { CloudFrontViewerInfo } from "./types/viewer-info" ;
97
108declare module "hono" {
119 interface ContextVariableMap {
12- cloudFrontViewer : InferCloudFrontViewerInfo < CloudFrontViewerConfig > ;
10+ cloudFrontViewer : CloudFrontViewerInfo ;
1311 }
1412}
Original file line number Diff line number Diff line change 1414 "strict" : true ,
1515 "target" : " es2022" ,
1616 "verbatimModuleSyntax" : true
17- }
17+ },
18+ "exclude" : [" node_modules" , " dist" ]
1819}
You can’t perform that action at this time.
0 commit comments