js_facade_gen icon indicating copy to clipboard operation
js_facade_gen copied to clipboard

Please support typings split over multiple d.ts files

Open weenzeel opened this issue 5 years ago • 2 comments

Hello!

I think this could be a wonderful tool to make Dart a better option for web development.

I wanted to crete typings for the javascript version of the processing creative library. And used the typings from here ...

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/p5

The typings main file relates to a list of referenced typings in different files. But only a typing for the main file is generated when js facade is run.

How to generate Dart facades for the entire library? Can this process be made simpler? Or some documentation written on how to do it?

Thanks!

weenzeel avatar Dec 04 '19 12:12 weenzeel

At the moment you'll need to specify all the filenames as command line arguments. See https://github.com/dart-lang/js_facade_gen/issues/58#issuecomment-548931865 for an example. This process will be made simpler in the future, but right now we're focused on doing a rewrite of this tool so there won't be any new features just yet.

derekxu16 avatar Dec 04 '19 17:12 derekxu16

Ok, thanks for the info. Then I at lest know how to try to do it.

weenzeel avatar Dec 04 '19 20:12 weenzeel