Skip to content

Commit

Permalink
fix: segment ts issue (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Feb 8, 2024
1 parent 6013bb2 commit e2c385c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3041,6 +3041,7 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
async querySegments(filter: {}, options: QuerySegmentsOptions = {}) {
return await this.get<{
segments: Segment[];
next?: string;
}>(this.baseURL + `/segments`, {
payload: {
filter,
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2486,8 +2486,8 @@ export type DeleteUserOptions = {
export type SegmentType = 'channel' | 'user';

export type SegmentData = {
description: string;
filter: {};
description?: string;
filter?: {};
};

export type Segment = {
Expand Down

0 comments on commit e2c385c

Please sign in to comment.