@irwinproject/storybook-addon-tsdoc
Version:
Generate mdx documentation from your typescript!
14 lines (13 loc) • 471 B
TypeScript
/**
* The escape method should be used sparingly. because for example it can over escape a string if already escaped one. that being said this function should be unecessary once addon full supports the spec.
* @param text
*/
export declare const escape: (text: string) => string;
/**
* Its just more convenient if this is attached to the string prototype.
*/
declare global {
interface String {
wrap(a: string, b: string, esc?: boolean): string;
}
}