Select which package(s) are affected
@livekit/components-core
Describe the bug
When using the useAgent hook, TypeScript throws an error indicating that audioTrack does not exist on the returned type.
const { audioTrack } = useAgent();
Reproduction
audioTrack should be properly typed and included in UseAgentReturn.
Actual behavior:
TypeScript does not recognize audioTrack on UseAgentReturn, causing a type error.
Logs
System Info
"@livekit/components-react": "^2.0.0",
Severity
annoyance
Additional Information
No response
Select which package(s) are affected
@livekit/components-core
Describe the bug
When using the useAgent hook, TypeScript throws an error indicating that audioTrack does not exist on the returned type.
const { audioTrack } = useAgent();
Reproduction
audioTrack should be properly typed and included in UseAgentReturn.
Actual behavior:
TypeScript does not recognize audioTrack on UseAgentReturn, causing a type error.
Logs
System Info
Severity
annoyance
Additional Information
No response