externs: add type for onMutation callback