We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2026260 commit af9df1fCopy full SHA for af9df1f
1 file changed
src/client/index.test.ts
@@ -54,21 +54,23 @@ test("should typecheck", () => {
54
});
55
56
// Typecheck that only valid weather requests/notifications/results are allowed
57
- weatherClient.request(
58
- {
59
- method: "weather/get",
60
- params: {
61
- city: "Seattle",
+ false &&
+ weatherClient.request(
+ {
+ method: "weather/get",
+ params: {
62
+ city: "Seattle",
63
+ },
64
},
- },
- WeatherResultSchema,
65
- );
+ WeatherResultSchema,
66
+ );
67
- weatherClient.notification({
68
- method: "weather/alert",
69
70
- severity: "warning",
71
- message: "Storm approaching",
72
73
- });
+ weatherClient.notification({
+ method: "weather/alert",
+ severity: "warning",
+ message: "Storm approaching",
74
75
+ });
76
0 commit comments