We're incrementally adding the composition-api using defineComponent, and ran into a snag with one of our components that uses $route in the data function:

This code works fine with defineComponent, it's just the typing that doesn't.
Possibly related to #338?