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 Oct 24, 2024
1 parent a86904e commit 6016032
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 @@ -1500,6 +1500,9 @@ export type ChannelFilters<StreamChatGenerics extends ExtendableGenerics = Defau
userType: StreamChatGenerics['userType'];
}>[Key]
>;
} & {
pinned?: boolean;
archived?: boolean;
}

Check failure on line 1506 in src/types.ts

View workflow job for this annotation

GitHub Actions / lint

Expected interface keys to be in required first natural insensitive ascending order. 'archived' should be before 'pinned'
>;

Expand Down Expand Up @@ -1807,7 +1810,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 6016032

Please sign in to comment.