Typescript: Where is the type definition for the 'room' object returned from api?

Options
jdiz
jdiz Member

Hello,

I'm creating and retrieving rooms via the DailyJS api. How can I strongly type the returned room object?

I looked at the DailyRoomInfo type, but it doesn't match the returned data (i.e., there's no url specified in the DailyRoomInfo interface).

Tagged:

Answers

  • daily_joey
    daily_joey Moderator, Dailynista admin
    Options

    Hi @jdiz , thanks for your question! I'm checking with our engineers for the answer

  • daily_joey
    daily_joey Moderator, Dailynista admin
    Options

    Hi @jdiz

    Are you referring to the JSON that is returned by the REST API when querying the /rooms endpoint? Or something else?

    You should be seeing Typescript definitions for the daily-js library, but not the REST API endpoints.