Skip to content

useAgent hook missing audioTrack type in UseAgentReturn #1344

@mertcancet

Description

@mertcancet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions