UNPKG

315 BTypeScriptView Raw
1/**
2 * Mimic `with` as far as possible but at compile time
3 *
4 * @param obj The object part of a with expression
5 * @param src The body of the with expression
6 * @param exclude A list of variable names to explicitly exclude
7 */
8export default function addWith(obj: string, src: string, exclude?: string[]): string;