Skip to content
Henrik Hannemose edited this page Dec 6, 2017 · 3 revisions

XrmDefinitelyTyped

XrmDefinitelyTyped generates TypeScript declaration files based on your Dynamics 365/CRM/xRM solution.

XrmDefinitelyTyped can be installed and updated via NuGet

PM> Install-Package Delegate.XrmDefinitelyTyped

What is it?

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.

It generates data-specific declaration files for:

  • The Xrm object model for client-side coding of forms and custom pages
  • Global and entity-specific option sets
  • The standard SDK.REST.js API for querying CRM via OData.
  • The standard SDK.MetaData.js API for querying the metadata of CRM.
  • XrmQuery for the Web API and the old REST endpoint. XrmQuery makes it possible to perform fully type-safe queries to CRM.

All this makes it possible to catch bugs at compile-time in your IDE (instead of at runtime on the CRM instance), as well as providing full intellisense for the APIs and entities, which greatly enhances the coding experience!

Get started

Check out the Getting started page, and which options are available for XrmDefinitelyTyped.

Then depending on what you need to do, check out how the different parts work by following the links in the side menu.