Typescript

This commit is contained in:
Mitchell McCaffrey
2021-07-16 18:59:29 +10:00
parent 2ce9d2dd08
commit a1fb67df7b
22 changed files with 314 additions and 203 deletions

View File

@@ -208,7 +208,9 @@ function MapContols({
>
<Settings
settings={toolSettings[selectedToolId]}
onSettingChange={(change) =>
onSettingChange={(
change: Partial<Settings["fog" | "drawing" | "pointer"]>
) =>
onToolSettingChange({
[selectedToolId]: {
...toolSettings[selectedToolId],