You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/typescript.asciidoc
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ definitions for every exposed API.
7
7
NOTE: If you are using TypeScript you will be required to use _snake_case_ style
8
8
to define the API parameters instead of _camelCase_.
9
9
10
-
By default event API uses https://www.typescriptlang.org/docs/handbook/generics.html[generics] to specify the requets and response bodies and the `meta.context`. Currently we can't provide those definitions, but we are working to improve this situation.
10
+
By default event API uses https://www.typescriptlang.org/docs/handbook/generics.html[generics] to specify the requests and response bodies and the `meta.context`. Currently we can't provide those definitions, but we are working to improve this situation.
11
11
12
12
You can find a partial definition of the request types by importing `RequestParams`, which is used by default in the client and accepts a body (when needed) as a generic to provide a better specification.
13
13
@@ -108,7 +108,7 @@ interface Source {
108
108
async function run () {
109
109
// All of the examples below are valid code, by default,
110
110
// the request body will be `RequestBody` and response will be `Record<string, any>`.
0 commit comments