Skip to content

Commit 79d7127

Browse files
authored
Update example on 070-developer-docs (#108)
update to reflect zCommandOutput output: .string() .or(z.string().array()) .or(zInputTextNode.array());
1 parent bd8c2b7 commit 79d7127

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/070-developer-docs.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ One thing to keep in mind is that there is a race condition between your extensi
127127
```javascript
128128
const args = {
129129
text: "MYCOMMAND",
130-
handler: (context) => () => console.log("Hello, World"),
130+
handler: (context) => () => {
131+
console.log("Hello, World");
132+
return "";
133+
},
131134
};
132135
if (window.roamjs?.extension?.smartblocks) {
133136
window.roamjs.extension.smartblocks.registerCommand(args);

0 commit comments

Comments
 (0)