oliverflint / xrmtypesgen Goto Github PK
View Code? Open in Web Editor NEWA Typescript Type Declaration Generator for Dynamics 365
License: MIT License
A Typescript Type Declaration Generator for Dynamics 365
License: MIT License
There are still a lot of old on premise implementations working with @types/xrm v8, I happen work on a project like this daily ๐
It would be nice to support those projects too.
*I found this article and wanted to get your thoughts on the claim
The first thing to be aware of is that @types/xrm and XrmDefinitelyTyped are incompatible with each other. You cannot have the DefinitelyTyped type definitions in the same compilation context as the XrmDefinitelyTyped definitions.
It would be nice to have an option to read the configuration from file, so that we could add more advanced filters. Like white lists, or black lists for forms or entities. Or specify a list of forms. for example a file XrmTypesGen.config.json
like this:
{
"entities": {
"account": "Account",
"contact": ["Contact", "Information"],
"lead": true
}
}
When running xrmtypesgen and a form has a tab with an auto generated Guid name it fails with the following error message:
(node:35236) UnhandledPromiseRejectionWarning: SyntaxError: An identifier or keyword cannot immediately follow a numeric literal. (382:79)
380 | * @returns `Xrm.Controls.Tab`.
381 | */
> 382 | get(tabname: "{695e07fd-fedf-4e04-ba92-366f59c2c2a2}"): 695e07fdfedf4e04ba92366f59c2c2a2TabControl
| ^
383 | }
384 |
385 | type 695e07fdfedf4e04ba92366f59c2c2a2TabControl = Xrm.Controls.Tab & {
at e (C:\dev\Test\node_modules\prettier\parser-typescript.js:1:322)
at Object.parse (C:\dev\Test\node_modules\prettier\parser-typescript.js:1:3072720)
at Object.parse (C:\dev\Test\node_modules\prettier\index.js:13625:19)
at coreFormat (C:\dev\Test\node_modules\prettier\index.js:14899:14)
at format (C:\dev\Test\node_modules\prettier\index.js:15131:14)
at C:\dev\Test\node_modules\prettier\index.js:57542:12
at Object.format (C:\dev\Test\node_modules\prettier\index.js:57562:12)
at Object.render (C:\dev\Test\node_modules\xrmtypesgen\dist\renderer.js:26:34)
at C:\dev\Test\node_modules\xrmtypesgen\dist\index.js:60:33
at processTicksAndRejections (internal/process/task_queues.js:93:5)
I know it is much to ask ;) but:
I would like to add an option to generate the EarlyBound models in a slightly different format which is compatible with the new package that I have created: @albanian-xrm/early-bound
I will issue a PR myself soon for this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.