UNPKG

@promptbook/vercel

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

15 lines (14 loc) 636 B
import type { string_javascript } from '../../../types/typeAliases'; import type { string_javascript_name } from '../../../types/typeAliases'; /** * Parses the given script and returns the list of all used variables that are not defined in the script * * @param script from which to extract the variables * @returns the list of variable names * @throws {ParseError} if the script is invalid * @public exported from `@promptbook/javascript` */ export declare function extractVariablesFromJavascript(script: string_javascript): Set<string_javascript_name>; /** * TODO: [🔣] Support for multiple languages - python, java,... */