As .NET Core 2 is coming can TypeProvider be used to automatically generate typings?
F#
let `$` = DTS<jQuery.d.ts>
Yes, hopefully Type Providers are coming to .NETCore 2.0 (though I'm not 100% sure and there may also be limitations) and this will be a very good thing for Fable. However I don't think we'll be able to use a Type Provider to generate the bindings as there are many disadvantages. FunScript only use a TP in its early stage and when Typescript had many less features. To name a few hurdles:
ts2fable is) you can use the TypeScript compiler API itself to parse TS files, this is much more difficult to with a Type Provider (I tried it in the past :wink:).With this, I just mean I'm not planning to work on a type provider for the bindings. But of course, I won't tie the hands of anyone who wants to give it a try ;)
Most helpful comment
Yes, hopefully Type Providers are coming to .NETCore 2.0 (though I'm not 100% sure and there may also be limitations) and this will be a very good thing for Fable. However I don't think we'll be able to use a Type Provider to generate the bindings as there are many disadvantages. FunScript only use a TP in its early stage and when Typescript had many less features. To name a few hurdles:
ts2fableis) you can use the TypeScript compiler API itself to parse TS files, this is much more difficult to with a Type Provider (I tried it in the past :wink:).With this, I just mean I'm not planning to work on a type provider for the bindings. But of course, I won't tie the hands of anyone who wants to give it a try ;)