TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

Switch to default no prefix? #4

Closed Bartvds closed 8 years ago

Bartvds commented 10 years ago

Maybe set prefix to empty string by default?

Not sure, but I think that would still be valid and sensible, as many modules use submodules that look like a path (eg: without leading dots/slash).

I originally had '__' to make the sub modules look 'private' but maybe that's not really necessary.

So this:

declare module 'foo/bar' {}

Instead of:

declare module '__foo/bar' {}

@poelstra What do you think?

poelstra commented 10 years ago

Haven't tested it, but it sounds like a plan yes.

tolemac commented 8 years ago

What about this?

I use prefix = "" always ...

If nobody says anything I proceed to change it.