openai/openai-realtime-api-beta

TypeScript error trying to consume package from node.js. EventHandlerCallbackType not defined

Stevenic opened this issue · 1 comments

Trying to use the package server side with TypeScript results in a compiler error because EventHandlerCallbackType isn't defined in event_handler.d.ts. I can see the definition in the code but that's not making it into the d.ts file so you can't even reference the package from a TypeScript project without an error.

To work around the issue I had to manually add the definition to the top of the .d.ts file in the distribution:

image