Skip to content

Commit c9f33d6

Browse files
committed
Revert "refactor: export exampleStrategy with handler"
This reverts commit 2e19e48.
1 parent 2e19e48 commit c9f33d6

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/core/definer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ function defineRoute<
132132
security: input.security,
133133
};
134134

135-
handler.exampleStrategy = input.exampleStrategy;
136-
137135
if (input.middleware) {
138136
return { [input.method]: input.middleware(handler) } as RouteHandler<M, PPI, MwReq, MwRes>;
139137
}

src/types/next.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { ExampleStrategy } from "./example";
21
import type { HttpMethod } from "./http";
32
import type { OperationObject } from "@omer-x/openapi-types/operation";
43

@@ -11,7 +10,6 @@ export type RouteMethodHandler<PathParamsInput, Req, Res> = ((
1110
context?: RouteHandlerContext<PathParamsInput>
1211
) => Promise<Res>) & {
1312
apiData?: OperationObject,
14-
exampleStrategy?: ExampleStrategy,
1513
};
1614

1715
export type RouteHandler<

0 commit comments

Comments
 (0)