tslint fixes

This commit is contained in:
Scott Durow
2017-11-10 22:28:19 +00:00
parent 951589dc7a
commit 631fadea3b
3 changed files with 395 additions and 428 deletions

818
types/xrm/index.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

@@ -12,6 +12,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": false,
"baseUrl": "../",
"typeRoots": [
"../"

View File

@@ -177,7 +177,7 @@ ctrl.getVisible();
ctrl.setVisible(true);
// Demonstrate getEntityMetadata
Xrm.Utility.getEntityMetadata("account", ["telephone1"]).then(function(metadata){
Xrm.Utility.getEntityMetadata("account", ["telephone1"]).then((metadata) => {
console.log(metadata.Attributes["statuscode"].optionSet[0].Label.LocalizedLabels[0].Label);
});
@@ -194,6 +194,6 @@ Xrm.WebApi.retrieveMultipleRecords("contact", `?fetchXml=<fetch version='1.0' ma
<attribute name='name' />
</link-entity>
</entity>
</fetch>`).then(function (response) {
</fetch>`).then((response) => {
console.log("Query Returned : " + response.entities.length);
});