livekit-examples / realtime-playground

Play with OpenAI's new Realtime API in your browser
https://playground.livekit.io
Apache License 2.0
225 stars 76 forks source link

build(agent): set @types/node #12

Closed jjangga0214 closed 1 month ago

jjangga0214 commented 1 month ago

This resolves type errors like these.

스크린샷 2024-10-09 오후 7 28 26 스크린샷 2024-10-09 오후 7 28 20
gianpaj commented 1 month ago

i think we also need to add this to the tsconfig.json

-    "sourceMap": true
+    "sourceMap": true,
+    "lib": ["ESNext", "dom"] // Add "es2020" or a later version
  }
}
jjangga0214 commented 1 month ago

https://github.com/livekit-examples/realtime-playground/blob/0ea85162bd81f4d6f6131b2c18650ad40feac5b7/agent/tsconfig.json#L6