Skip to content

Commit a51bbc3

Browse files
committed
Make onImportXmlError nullable (the code already allows this, we just didn't make it nullable in the type signature)
1 parent 19ece29 commit a51bbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useBlocklyWorkspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {UseBlocklyProps} from "./BlocklyWorkspaceProps";
44

55
import debounce from "./debounce";
66

7-
function importFromXml(xml: string, workspace: Workspace, onImportXmlError: (error: any) => void) {
7+
function importFromXml(xml: string, workspace: Workspace, onImportXmlError?: (error: any) => void) {
88
try {
99
Blockly.Xml.domToWorkspace(Blockly.Xml.textToDom(xml), workspace);
1010
return true;

0 commit comments

Comments
 (0)