@assistant-ui/react
Version:
TypeScript/React library for AI Chat
32 lines • 824 B
TypeScript
/**
* Module augmentation namespace for assistant-ui type extensions.
*
* @example
* ```typescript
* declare module "@assistant-ui/react" {
* namespace Assistant {
* interface Commands {
* myCustomCommand: {
* type: "my-custom-command";
* data: string;
* };
* }
*
* interface ExternalState {
* myCustomState: {
* foo: string;
* };
* }
* }
* }
* ```
*/
export declare namespace Assistant {
interface Commands {
}
interface ExternalState {
}
}
export type UserCommands = Assistant.Commands[keyof Assistant.Commands];
export type UserExternalState = keyof Assistant.ExternalState extends never ? Record<string, unknown> : Assistant.ExternalState[keyof Assistant.ExternalState];
//# sourceMappingURL=augmentations.d.ts.map