From 3d0efe25cc70fd6caf07e37062b469158022336e Mon Sep 17 00:00:00 2001 From: Marcus Kohlberg <78424526+marcuskohlberg@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:35:54 +0200 Subject: [PATCH] Fix line breaks in api documentation (#1366) --- docs/ts/primitives/apis.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/ts/primitives/apis.mdx b/docs/ts/primitives/apis.mdx index e46145443a..1ed669ed38 100644 --- a/docs/ts/primitives/apis.mdx +++ b/docs/ts/primitives/apis.mdx @@ -85,30 +85,30 @@ export const hello = api( Request and response schemas are both optional. There are four different ways of defining an API: -**Using both request and response data:** +**Using both request and response data:**
`api({ ... }, async (params: Params): Promise => {});` -**Only returning a response:** +**Only returning a response:**
`api({ ... }, async (): Promise => {});` -**With only request data:** +**With only request data:**
`api({ ... }, async (params: Params): Promise => {});` -**Without any request or response data:** +**Without any request or response data:**
`api({ ... }, async (): Promise => {});` Alternatively, you can express these using type parameters, since `api` is a generic function: -**Using both request and response data:** +**Using both request and response data:**
`api({ ... }, async (params) => {});` -**Only returning a response:** +**Only returning a response:**
`api({ ... }, async () => {});` -**With only request data:** +**With only request data:**
`api({ ... }, async (params) => {});` -**Without any request or response data:** +**Without any request or response data:**
`api({ ... }, async () => {});` ### Customizing request and response encoding