refactor: Use specific event parameter type in BuildTrigger
This change updates an event parameter type in BuildTrigger to improve type safety. Specifically, an event parameter type was modified from 'any' to a more specific type to avoid invalid use of the event parameter.
This commit is contained in:
parent
d3d33162e8
commit
1aa91587cc
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ export default function BuildTrigger({
|
|||
}
|
||||
};
|
||||
|
||||
eventSource.onerror = (error) => {
|
||||
eventSource.onerror = (error: any) => {
|
||||
console.error("EventSource failed:", error);
|
||||
eventSource.close();
|
||||
if (error.data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue