clutz icon indicating copy to clipboard operation
clutz copied to clipboard

Function gets redefined, leading to very messy/weird generated .d.ts file

Open mtaran-google opened this issue 8 years ago • 0 comments

Ran clutz on some externs for CodeMirror. This ended up creating

declare namespace ಠ_ಠ.clutz.CodeMirror {
  type HintFunction = Function ;
}

but then clutz also renamed every other use of Function in the file to ಠ_ಠ.clutz.CodeMirror.HintFunction, which resulted in kinda ridiculous-looking code :)

mtaran-google avatar Jul 20 '17 00:07 mtaran-google