Skip to content

Commit 826ba62

Browse files
authored
Use lenient resolver type (#956)
In #921, a stronger type applied to OperationHandlerOptions['resolver'] so that end users would have an idea of what the parameters are for their custom resolvers. It went too far in stipulating a return type. Set the return type to unknown and let users decide how much type safety they need in their resolver. Fixes #952
1 parent f20b1c9 commit 826ba62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/framework/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export type OperationHandlerOptions = {
6868
handlersPath: string,
6969
route: RouteMetadata,
7070
apiDoc: OpenAPIV3.Document,
71-
) => RequestHandler | Promise<RequestHandler>;
71+
) => unknown;
7272
};
7373

7474
export type Format = {

0 commit comments

Comments
 (0)