@plteam/chat-ui
Version:
CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript
9 lines (8 loc) • 498 B
TypeScript
export type FnType<ReturnValue = void> = () => ReturnValue;
export type MakeReadonlyValuesExcept<T, Keys extends keyof T> = Readonly<Omit<T, Keys>> & Pick<T, Keys>;
export type MakeReadonlyValues<T, Keys extends keyof T> = Readonly<Pick<T, Keys>> & Omit<T, Keys>;
export type ArrayType<T> = (readonly T[]) | T[];
export type KeysOfType<T, U> = {
[K in keyof T]: T[K] extends U ? K : never;
}[keyof T];
export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>;