thebe-react
Version:
React providers and components for thebe-core
15 lines (14 loc) • 499 B
TypeScript
/**
* Very basic interpolation
*
* Only parses inline `#| @param` comment tags, python like comments only
* Always assumes variable assignment
*
*/
export declare const PYTHON_PARAM: RegExp;
/**
*
* @param parameterMap - dictionary of known variables and values to inerpolate them to
* @returns (function) performs interpolation on the source string using the parameterMap
*/
export declare function interpolatorFactoryFn(parameterMap: Record<string, string>): (source: string) => string;