This commit is contained in:
Daryl LaBar
2016-12-30 03:01:32 -05:00
parent 66d12d9ada
commit b67114684c
10 changed files with 70 additions and 7 deletions

View File

20
xrm/v6/tsconfig.json Normal file
View File

@@ -0,0 +1,20 @@
{
"files": [
"index.d.ts",
"xrm-v6-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}

View File

@@ -1,3 +1,5 @@
/// <reference path="index.d.ts" />
/// <reference path="../parature.d.ts" />
function _getContext()

20
xrm/v7.1/tsconfig.json Normal file
View File

@@ -0,0 +1,20 @@
{
"files": [
"index.d.ts",
"xrm-v7.1-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}

View File

@@ -1,5 +1,5 @@
/// <reference path="xrm.d.ts" />
/// <reference path="parature.d.ts" />
/// <reference path="index.d.ts" />
/// <reference path="../parature.d.ts" />
/// Demonstrate usage in the browser's window object
@@ -41,7 +41,7 @@ grids.forEach(( gridControl: Xrm.Page.GridControl ) =>
gridControl.getGrid().getSelectedRows().forEach(( row ) =>
{
selectedGridReferences.push( row.getData().getEntity().getEntityReference() );
})
});
});
/// Demonstrate generic overload vs typecast

20
xrm/v7/tsconfig.json Normal file
View File

@@ -0,0 +1,20 @@
{
"files": [
"index.d.ts",
"xrm-v7.0-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}

View File

@@ -1,3 +1,5 @@
/// <reference path="index.d.ts" />
/// <reference path="../parature.d.ts" />
function _getContext()

View File

@@ -38,10 +38,9 @@ var selectedGridReferences: Xrm.Page.LookupValue[] = [];
grids.forEach(( gridControl: Xrm.Page.GridControl ) =>
{
gridControl.getGrid().getSelectedRows().forEach(( row ) =>
{
selectedGridReferences.push( row.getData().getEntity().getEntityReference() );
})
gridControl.getGrid().getSelectedRows().forEach((row) => {
selectedGridReferences.push(row.getData().getEntity().getEntityReference());
});
});
/// Demonstrate generic overload vs typecast