ChatMathLoader

Loads KaTeX, usually () => import('katex'). The application supplies it, so the chat library never names katex: an application that does not render math installs and bundles nothing for it, and its development server never has to resolve the package.

import type { ChatMathLoader } from '@threadplane/angular/chat/math';

Declaration

export type ChatMathLoader = () => Promise<ChatMathModule | {
    default: ChatMathModule;
}>;