Blueprint: Couldn't find Type Defination file

Created on 14 Nov 2016  路  4Comments  路  Source: palantir/blueprint

I was trying to pull Type Defination using typings. But I couldn't found single file having all the definitions in file. Like blueprint.core.d.ts.

Can you tell me where I can find them?

PS: Please close the issue if it is not appropriate or in pending task. I filled a issue as I can't find twitter of it.

question

Most helpful comment

Type declaration files are bundled in the NPM package. They are not published to DefinitelyTyped (they don't need to be; the library itself is authored in TypeScript). The compiler should resolve them automatically (docs).

image

All 4 comments

Type declaration files are bundled in the NPM package. They are not published to DefinitelyTyped (they don't need to be; the library itself is authored in TypeScript). The compiler should resolve them automatically (docs).

image

@adidahiya hey, thanks for reply. Basically I was trying to convert them to F#. So, single file would be good. For multiple file have to write script ;).

You mind if I can close it. Or you can always do the honor. :)

Interesting! There is no good way to compile modular type declarations into a single file in the same way that webpack bundles JS modules into a single script. We did write a pretty hacky tool to do this a little while back before the introduction of UMD module definitions in the TS compiler -- https://github.com/palantir/global-typings-bundler -- this is now deprecated and I would not recommend using it, but it demonstrates the general idea.

Closing as discussion seems resolved. This is a special use case which will require special handling.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raiju picture raiju  路  3Comments

ernestofreyreg picture ernestofreyreg  路  3Comments

sunabozu picture sunabozu  路  3Comments

vilav picture vilav  路  3Comments

adidahiya picture adidahiya  路  3Comments