index.d.ts 315 B

123456789
  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. */
  8. export default function addWith(obj: string, src: string, exclude?: string[]): string;