Ali Khalili
Ali Khalili

Reputation: 210

Jaydata - Typescript

I use jaysvcutil to compile OData $metadata and create JayDataContext.js and it's really awesome but I use Typescript and I don't wanna use import/export syntax in typescript and other third party tools such as requirejs or systemjs ,... jaysvcutil make JayDataContext.d.ts and it's module is only importable in typescript! how can I compile JayDataContext.d.ts and use it's declaration file without import syntax ?

Upvotes: 0

Views: 200

Answers (1)

mohammad kamali
mohammad kamali

Reputation: 409

you can use roslyn api to generate code yourself and of course you should create all needed typescript declarations too. as you know you can use reflection to implement this feature but it would be in runtime, but roslyn make u sure to have all generated code in each build.

Upvotes: 0

Related Questions