XrmDefinitelyTyped
Tool to generate TypeScript declaration files for Dynamics 365/CDS client-side coding.
Install / Use
/learn @delegateas/XrmDefinitelyTypedREADME
XrmDefinitelyTyped

XrmDefinitelyTyped generates TypeScript declaration files based on your Dynamics 365/CRM/xRM solution.
It is the TypeScript equivalent of CrmSvcUtil, but instead of generating early-bound .NET classes for server-side code, it generates TypeScript interfaces for all your client-side coding.
Getting started
Contribute
Build
Recommended environment: Visual Studio 2019
Requirements:
Building the project
This project is created from ProjectScaffold, which uses FAKE to automate a lot of the build tasks (setup, build, test, docs, nuget package, releases, etc).
Before you can build/run the project from Visual Studio, you need to run build from the command-line in the root folder.
This will trigger the default FAKE build. FAKE handles setting up the project and it's dependencies as needed, before running the actual MSBuild task on the project.
Once it has been set up correctly by FAKE, you will be able to build the project using Visual Studio from then on.
Test
Recommended environment: Visual Studio Code
Requirements:
Run tests
Run build test in the root folder of the project to let FAKE handle the setting up, building, running and testing of the project.
To manually run the tests, go to the test-folder and execute:
npm install
npm test
The typings necessary for the test project to work are generated by running the main XrmDefinitelyTyped project with the current App.config file.
Related Skills
Writing Hookify Rules
92.1kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
99.7kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
cursorrules
A collection of .cursorrules
mcp-for-beginners
15.7kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
