Skip to content

Commit

Permalink
export types
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed Jul 14, 2024
1 parent 76d5bc2 commit c9f004b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ type TextStreamYield = { choices: [{ delta: { content: string } }] }
type TextStreamResult = string

// Stream yield type for StreamObjectReturn
type StreamObjectYield<T> = {
export type StreamObjectYield<T> = {
choices: [{ delta: { content: DeepPartial<T> } }]
}

// Stream result type for StreamObjectReturn
type StreamObjectResult<T> = DeepPartial<T>
export type StreamObjectResult<T> = DeepPartial<T>

// Type definition for deep partial object
export type DeepPartial<T> = {
Expand Down

0 comments on commit c9f004b

Please sign in to comment.