Typescript: Where is the type definition for the 'room' object returned from api?
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:
1
Answers
-
Hi @jdiz , thanks for your question! I'm checking with our engineers for the answer
2 -
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.1