don't create a function wrapper when there are no vars

This allows type declarations with TypeScript