From 009d8ec015cc4332c3214f7c82c3c989e3af4e36 Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Mon, 2 Sep 2024 15:59:57 +0200 Subject: [PATCH] docs: Update demo page description --- .../components/Playground/editor-types/@data-client/core.d.ts | 1 + website/src/components/Playground/editor-types/react.d.ts | 4 ++-- website/src/pages/demos.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/website/src/components/Playground/editor-types/@data-client/core.d.ts b/website/src/components/Playground/editor-types/@data-client/core.d.ts index 4e603b91f82d..18c49e12bcc0 100644 --- a/website/src/components/Playground/editor-types/@data-client/core.d.ts +++ b/website/src/components/Playground/editor-types/@data-client/core.d.ts @@ -382,6 +382,7 @@ interface GCAction { entities: [string, string][]; endpoints: string[]; } +/** @see https://dataclient.io/docs/api/Actions */ type ActionTypes = FetchAction | OptimisticAction | SetAction | SetResponseAction | SubscribeAction | UnsubscribeAction | InvalidateAction | InvalidateAllAction | ExpireAllAction | ResetAction | GCAction; type Dispatch = (value: Actions) => Promise; diff --git a/website/src/components/Playground/editor-types/react.d.ts b/website/src/components/Playground/editor-types/react.d.ts index 50d4a00f04e6..1c361b384b74 100755 --- a/website/src/components/Playground/editor-types/react.d.ts +++ b/website/src/components/Playground/editor-types/react.d.ts @@ -2428,9 +2428,9 @@ declare namespace React { // Keyboard Events onKeyDown?: KeyboardEventHandler | undefined; onKeyDownCapture?: KeyboardEventHandler | undefined; - /** @deprecated */ + /** @deprecated Use `onKeyUp` or `onKeyDown` instead */ onKeyPress?: KeyboardEventHandler | undefined; - /** @deprecated */ + /** @deprecated Use `onKeyUpCapture` or `onKeyDownCapture` instead */ onKeyPressCapture?: KeyboardEventHandler | undefined; onKeyUp?: KeyboardEventHandler | undefined; onKeyUpCapture?: KeyboardEventHandler | undefined; diff --git a/website/src/pages/demos.tsx b/website/src/pages/demos.tsx index e2e8948dbfb9..574ad5e8ff4d 100644 --- a/website/src/pages/demos.tsx +++ b/website/src/pages/demos.tsx @@ -9,7 +9,7 @@ export default function DemoList() { return (