UNPKG

@sendbird/uikit-utils

Version:

A collection of utility functions and constants for building chat UI components with Sendbird UIKit.

6 lines (5 loc) 332 B
import type { Role } from '@sendbird/chat'; import type { UserStruct } from '../types'; export declare function ifOperator<T>(role: Role | null, then: T): T | undefined; export declare function ifOperator<T, V>(role: Role | null, then: T, or: V): T | V; export declare function getUserUniqId<T extends UserStruct>(user: T): string;