@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
32 lines • 1.03 kB
TypeScript
/**
* ```js
* import { getUsers } from '@amityco/ts-sdk-react-native'
* const { data: users } = await getUsers(['foo', 'bar'])
* ```
*
* Fetches a collection of {@link Amity.User} objects
*
* @param userIds the IDs of the {@link Amity.User} to fetch
* @returns the associated collection of {@link Amity.User} objects
*
* @category User API
* @async
*/
export declare const getUserByIds: {
(userIds: Amity.User['userId'][]): Promise<Amity.Cached<Amity.User[]>>;
/**
* ```js
* import { getUsers } from '@amityco/ts-sdk-react-native'
* const { data: users } = getUsers.locally!(['foo', 'bar'])
* ```
*
* Fetches a collection of {@link Amity.User} objects from cache
*
* @param userIds the IDs of the {@link Amity.User} to fetch
* @returns the associated collection of {@link Amity.User} objects
*
* @category User API
*/
locally(userIds: Amity.User['userId'][]): Amity.Cached<Amity.User[]> | undefined;
};
//# sourceMappingURL=getUserByIds.d.ts.map