Update onClick type to allow void return

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