diff --git a/src/Html/Editor/HasEvents.php b/src/Html/Editor/HasEvents.php
index e06d11a..93012db 100644
--- a/src/Html/Editor/HasEvents.php
+++ b/src/Html/Editor/HasEvents.php
@@ -64,11 +64,11 @@ public function __call($method, $parameters)
* Add Editor event listener scripts.
*
* @param string $event
- * @param string $script
+ * @param mixed $script
* @return $this
* @see https://editor.datatables.net/reference/event
*/
- public function on(string $event, string $script): static
+ public function on(string $event, mixed $script): static
{
$this->events[] = [
'event' => $event,