@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
12 lines (11 loc) • 396 B
TypeScript
import { ReactNode } from 'react';
interface TagMap {
[key: string]: string | ((content: string) => string | ReactNode);
}
/**
* Given a tagmap will return a function that can be passed directly as the
* children of an FormattedHTMLMessage. See the Readme
*
*/
export declare const makeFormattedHTMLTagReplacer: (tagmap: TagMap) => ((text: string | JSX.Element) => ReactNode);
export {};