Commit 6b923f6
authored
fix(client): allow interface to be implemented (#135)
The addition of the unexported `sendRequest` method prevents external
packages from implmenting the `MCPClient` interface. Since it is only used
by the unexported `listByPage`, create an unexported `mcpClient`
interface, which embeds the exported `MCPClient` as well as the
`sendRequest` method.
Add build time checking that internal implementations implement the
unexported interface.1 parent cc777fc commit 6b923f6
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
117 | | - | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
0 commit comments