mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
import type { JSX } from 'react';
|
|
|
|
export type RenderTextCallbackType = (options: {
|
|
text: string;
|
|
key: number;
|
|
isGroup: boolean;
|
|
isPublic: boolean;
|
|
}) => JSX.Element;
|
|
|
|
export type DeepNullable<T> = {
|
|
[P in keyof T]: T[P] extends object ? DeepNullable<T[P]> : T[P] | null;
|
|
};
|
|
|
|
// eslint-disable-next-line @typescript-eslint/array-type
|
|
export type NonEmptyArray<T> = [T, ...T[]];
|