pmneo / ts-importer

MIT License
73 stars 8 forks source link

Can you provide somewhere to customize some index? #34

Closed k8w closed 7 years ago

k8w commented 7 years ago

For example, I always use this:

import * as path from 'path';

However, it can't auto import path when I typed path. I'm not sure if this is a common demand, but think it will be really useful if somewhere I can add some customize index. (Just like the dump index file)

And another problem is that , once use ts-importer, I found that some hint of basic type disappeared. e.g. I type this:

let a: string;

Code hint of string can not work. While I disable ts-importer it could.

pmneo commented 7 years ago

You can specify the order importance of ts-importer: tsimporter.lowImportance