From 7b7866b382c5812d1ff52cc1afe026030cc0f02a Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 3 Jan 2024 18:21:43 +0100 Subject: [PATCH] docs: will typescript improve syntax? --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 399637c..30a1857 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ https://cdn.alemi.dev/guestbook/0.3.0.js this provides a plain JS (+jsdoc! check type hints) module exporting one function to hook the automatic infinite scroll fetcher you can also manage things with your framework of choice, just `GET /api?offset=x&limit=y` to receive a list of public pages -```js +```typescript class GuestbookPage { id: number author: string @@ -68,7 +68,7 @@ class GuestbookPage { ``` inserting a new page can be done with either a `POST` (+form) or a `PUT` (+json) request on `/api` endpoint -```js +```typescript class GuestbookInsertion { body: string, author: string | undefined,