Skip to content

Commit e549aa9

Browse files
authored
Merge pull request #101 from elliottcarlson/patch-1
Optional props on useBlocklyWorkspace
2 parents 36fedc1 + 88c5b45 commit e549aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BlocklyWorkspaceProps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { RefObject } from "react";
44
export interface CommonBlocklyProps {
55
initialXml?: string;
66
initialJson?: object;
7-
toolboxConfiguration: Blockly.utils.toolbox.ToolboxDefinition;
7+
toolboxConfiguration?: Blockly.utils.toolbox.ToolboxDefinition;
88
workspaceConfiguration: Blockly.BlocklyOptions;
9-
onWorkspaceChange: (workspace: WorkspaceSvg) => void;
9+
onWorkspaceChange?: (workspace: WorkspaceSvg) => void;
1010
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1111
onImportXmlError?: (error: any) => void;
1212
// eslint-disable-next-line @typescript-eslint/no-explicit-any

0 commit comments

Comments
 (0)