When I import or create a directive in an SFC file, I can receive TypeScript hints like this:
import vFocus from 'my-custom-component-library';
However, if I globally register it in main.ts
, the type hints are not available.
For instance:
app.directive('focus', vFocus);
So, how can I include type hints when globally installing it?