Skip to content

Instantly share code, notes, and snippets.

@elijahbenizzy
Created July 5, 2024 06:15
Show Gist options
  • Save elijahbenizzy/8ecde1857e79f40169a2ce6e61fbf4a9 to your computer and use it in GitHub Desktop.
Save elijahbenizzy/8ecde1857e79f40169a2ce6e61fbf4a9 to your computer and use it in GitHub Desktop.
type Event = {
type: 'delta' | 'chat_history';
};
type ChatMessageEvent = Event & {
value: string;
};
type ChatHistoryEvent = Event & {
value: ChatItem[];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment