jsx-readme
Version:
Generate Readme files with a React-like syntax and package.json-aware helpers.
19 lines (18 loc) • 449 B
TypeScript
import type { Component } from "jsx-md";
/**
* Defines a regex to search with and a string that should be used
* to replace the results found.
*/
interface Replacement {
find: RegExp;
replace: string;
}
/** @internal */
interface Props {
fileName: string;
children: string;
replacements?: Replacement[];
}
/** Displays a code file with a heading and a codeblock. */
export declare const CodeFile: Component<Props>;
export {};