Skip to content

Commit 97dca88

Browse files
committed
fix: add missing interface for type definition in DiscoveryService
Signed-off-by: Remi Cattiau <[email protected]>
1 parent 5877d99 commit 97dca88

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/discovery/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
import { CloudEventV1Service } from "../";
22

3+
interface RequestHandler {
4+
(
5+
req: { query: { matching: string }; url: string },
6+
res: {
7+
end: () => void;
8+
status: (
9+
code: number,
10+
) => { json: (obj: Record<string, unknown> | CloudEventV1Service[]) => string; end: () => void };
11+
},
12+
): void;
13+
}
314
/**
415
* DiscoveryService to implement the discovery spec:
516
*

0 commit comments

Comments
 (0)