Rocket.Chat.ReactNative/app/definitions/rest/v1/directory.ts

14 lines
341 B
TypeScript
Raw Normal View History

import { IServerRoom } from '../../IRoom';
import { PaginatedResult } from '../helpers/PaginatedResult';
export type DirectoryEndpoint = {
directory: {
GET: (params: {
query: { [key: string]: string };
count: number;
offset: number;
sort: { [key: string]: number };
}) => PaginatedResult<{ result: IServerRoom[] }>;
};
};