Skip to content

Commit

Permalink
Merge pull request #10 from tomheaton/fix-code
Browse files Browse the repository at this point in the history
fix: fix react native event types
  • Loading branch information
bidah committed Apr 2, 2024
2 parents 49255dd + 9255245 commit ea58abc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/use-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export type UseChatHelpers = {
e:
| React.ChangeEvent<HTMLInputElement>
| React.ChangeEvent<HTMLTextAreaElement>
// NOTE: React Native TextInput has a different event type
| string
) => void;
/** Form submission handler to automatically reset input and append a user message */
handleSubmit: (e: any, chatRequestOptions?: ChatRequestOptions) => void;
Expand Down
2 changes: 2 additions & 0 deletions src/use-completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export type UseCompletionHelpers = {
e:
| React.ChangeEvent<HTMLInputElement>
| React.ChangeEvent<HTMLTextAreaElement>
// NOTE: React Native TextInput has a different event type
| string
) => void;
/**
* Form submission handler to automatically reset input and append a user message
Expand Down

0 comments on commit ea58abc

Please sign in to comment.