Skip to content

Commit

Permalink
add queryChannels filter & sort params
Browse files Browse the repository at this point in the history
  • Loading branch information
akupila committed Nov 1, 2024
1 parent 27ceb19 commit 9cfd285
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,9 @@ export type ChannelFilters<StreamChatGenerics extends ExtendableGenerics = Defau
userType: StreamChatGenerics['userType'];
}>[Key]
>;
} & {
archived?: boolean;
pinned?: boolean;
}
>;

Expand Down Expand Up @@ -1812,7 +1815,8 @@ export type ReactionSortBase<StreamChatGenerics extends ExtendableGenerics = Def

export type ChannelSort<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> =
| ChannelSortBase<StreamChatGenerics>
| Array<ChannelSortBase<StreamChatGenerics>>;
| Array<ChannelSortBase<StreamChatGenerics>>
| { pinned_at: AscDesc };

export type ChannelSortBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = Sort<
StreamChatGenerics['channelType']
Expand Down

0 comments on commit 9cfd285

Please sign in to comment.