Update onClick type to allow void return

This commit is contained in:
Harsh Mahajan authored and GitHub committed 2025-08-22 18:04:08 +05:30
1 parent 2e41c5d103
commit e32033c4ae
1 file changed
+1 -1
@@ -18,7 +18,7 @@
| {
text: string;
disabled?: boolean;
onClick?: () => boolean | Promise<boolean>;
onClick?: () => boolean | void | Promise<boolean | void>;
}
| undefined;
children?: Snippet;