Break up ts-activex into separate modules (#11805)

This commit is contained in:
Andy
2016-10-08 13:07:12 -07:00
committed by Mohamed Hegazy
parent 2a09ec44d5
commit cab65f1d39
11 changed files with 57 additions and 35 deletions

View File

@@ -1,6 +1,3 @@
/// <reference path="activex-data-objects.d.ts" />
//open connection to an Excel file
var pathToExcelFile = 'C:\\path\\to\\excel\\file.xlsx';
var conn = new ActiveXObject('ADODB.Connection');

View File

@@ -3,8 +3,6 @@
// Definitions by: Zev Spitz <https://github.com/zspitz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="jscript-extensions.d.ts" />
declare namespace ADODB {
//Enums

View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"activex-data-objects-tests.ts"
]
}

View File

@@ -1,6 +1,3 @@
/// <reference path="microsoft-scripting-runtime.d.ts" />
//source -- https://msdn.microsoft.com/en-us/library/ebkhfaaz.aspx

View File

@@ -3,8 +3,6 @@
// Definitions by: Zev Spitz <https://github.com/zspitz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="jscript-extensions.d.ts" />
declare namespace Scripting {
//Enums

View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"activex-scripting-runtime-tests.ts"
]
}

View File

@@ -1,5 +1,3 @@
/// <reference path="windows-image-acquisition.d.ts" />
//source -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms630826(v=vs.85).aspx

View File

@@ -3,8 +3,6 @@
// Definitions by: Zev Spitz <https://github.com/zspitz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="jscript-extensions.d.ts" />
declare namespace WIA {
//Enums

View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"activex-windows-image-acquisition-tests.ts"
]
}

View File

@@ -1,5 +0,0 @@
/// <reference path="jscript-extensions.d.ts" />
var x: VarDate;
var dte = new Date(x);
x = dte.getVarDate();

View File

@@ -1,16 +0,0 @@
// Type definitions for Microsoft JScript extensions
// Project: https://msdn.microsoft.com/en-us/library/yek4tbz0(v=vs.84).aspx
// Definitions by: Zev Spitz <https://github.com/zspitz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
//These will become unnecessary with the next version of Typescript
interface VarDate { }
interface DateConstructor {
new (vd: VarDate): Date;
}
interface Date {
getVarDate: () => VarDate;
}