-
Notifications
You must be signed in to change notification settings - Fork 262
Creating typings without a main d.ts #108
Comments
@siulung4073 In the current version, no. However, it is simple to support this and something I've been meaning to add (see #43). If you use a files array in |
Great! And what about cases where you dont own the library o package you are trying to create typings for, like with angular2 that it doesn't have a Wouldn't be possible to just specify a base folder so that For |
Could you give more information on what you're trying to type? Is it actually |
No, is not For example, on one hand I have an angular app, where I use On the other hand, I have an angular package I created. where I wanted to expose a couple of modules but not through the main one, instead each one separately (something like angular2 does). This is the repo and this one is the release repo. If you see, I have the entities and servicies modules that I wish to expose on their own. I honestly dont know how If you check Just a thought. Thanks! |
Thanks for the awesome feedback. It's definitely helpful. Would it be reasonable if I just start with |
ok, great. And if we keep going with the angular2 example, how would you do How would you do it with On Wed, Jan 13, 2016 at 7:11 PM Blake Embrey notifications@github.com
|
It was never a goal, unfortunately, to make projects that aren't related to the type definitions work. Typings was designed to consume type definitions and resolve over The fact it has worked is a pleasant coincidence, but I don't know how far I want to go to make this use-case work when it should be obsoleted by the compiler anyway. What I can do though, is open a PR to the team that uses |
👍 |
Hi there, Is there a way to create typings without a main d.ts ?
I have a project that doesn't have a main export, but a couple of modules export.
It would be something like angular2 has, that it doesn't have a index.d.ts or angular.d.ts or main.d.ts
If you want something you go 'angular2/....' something.
is this possible?
Thanks!
The text was updated successfully, but these errors were encountered: