We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbb5dd commit efb17dcCopy full SHA for efb17dc
.changeset/brave-dancers-add.md
@@ -0,0 +1,5 @@
1
+---
2
+'@openai/chatkit': patch
3
4
+
5
+Added missing types for `chatkit.ready` event
packages/chatkit/types/index.d.ts
@@ -914,6 +914,9 @@ export interface OpenAIChatKit extends HTMLElement {
914
* DOM events emitted by the `openai-chatkit` custom element.
915
*/
916
export type ChatKitEvents = {
917
+ /** Emitted when the ChatKit frame has loaded. */
918
+ 'chatkit.ready': CustomEvent<void>;
919
920
/** Emitted when an error occurs. You should log these for monitoring and debugging. */
921
'chatkit.error': CustomEvent<{ error: Error }>;
922
0 commit comments