diff --git a/src/types.ts b/src/types.ts index 35d12da28..522e79fd5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1576,7 +1576,7 @@ export interface KaboomCtx { * ```js * // toggle fullscreen mode on "f" * onKeyPress("f", (c) => { - * fullscreen(!isFullscreen()) + * setFullscreen(!isFullscreen()) * }) * ``` */