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 5f95d65 commit b1ebf8b
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 @@ -1501,6 +1501,9 @@ export type ChannelFilters<StreamChatGenerics extends ExtendableGenerics = Defau
userType: StreamChatGenerics['userType'];
}>[Key]
>;
} & {
archived?: boolean;
pinned?: boolean;
}
>;

Expand Down Expand Up @@ -1814,7 +1817,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 b1ebf8b

Please sign in to comment.