From 82c425fdd306fd4add8b9cbea2945fc3b84862a6 Mon Sep 17 00:00:00 2001 From: "Gabriel C. Troia" Date: Sat, 12 Oct 2024 18:25:25 +0100 Subject: [PATCH] fix(movex-docs): :bug: typings issues --- .../examples/modules/chat/movex/actions.ts | 2 +- .../examples/modules/rps/movex/actions.ts | 2 +- apps/movex-docs/modules/home/game/Game.tsx | 36 ++++++++++++------- libs/movex-core-util/src/lib/md5.ts | 2 +- libs/movex/src/index.ts | 2 +- 5 files changed, 28 insertions(+), 16 deletions(-) diff --git a/apps/movex-docs/modules/examples/modules/chat/movex/actions.ts b/apps/movex-docs/modules/examples/modules/chat/movex/actions.ts index d5cc7036..1a52ba58 100644 --- a/apps/movex-docs/modules/examples/modules/chat/movex/actions.ts +++ b/apps/movex-docs/modules/examples/modules/chat/movex/actions.ts @@ -1,4 +1,4 @@ -import { Action } from 'movex'; +import { Action } from 'movex-core-util'; import { Color, ParticipantId } from './state'; export type ChatActions = diff --git a/apps/movex-docs/modules/examples/modules/rps/movex/actions.ts b/apps/movex-docs/modules/examples/modules/rps/movex/actions.ts index 9e5a6539..dc450c22 100644 --- a/apps/movex-docs/modules/examples/modules/rps/movex/actions.ts +++ b/apps/movex-docs/modules/examples/modules/rps/movex/actions.ts @@ -1,4 +1,4 @@ -import { Action } from 'movex'; +import { Action } from 'movex-core-util'; import { PlayerId, PlayerLabel, RPS } from './types'; export type Actions = diff --git a/apps/movex-docs/modules/home/game/Game.tsx b/apps/movex-docs/modules/home/game/Game.tsx index 6cefc0b5..6c11943d 100644 --- a/apps/movex-docs/modules/home/game/Game.tsx +++ b/apps/movex-docs/modules/home/game/Game.tsx @@ -1,4 +1,3 @@ -import { getRandomInt } from 'movex-core-util'; import { useMemo } from 'react'; const bkgColor = '#ffc300'; @@ -7,9 +6,14 @@ export const Game = () => { const gameId = useMemo(() => String(Math.random()).slice(-8), []); return ( -
+
{ >

Try Movex with a Game of @@ -33,9 +39,11 @@ export const Game = () => {

-
+
{ }} >