File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change
1
+ # TypeScript Language Specification
2
+
1
3
Version 1.4
2
4
3
5
October, 2014
Original file line number Diff line number Diff line change 1
1
var sys = ( function ( ) {
2
- var fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
3
2
var fileStream = new ActiveXObject ( "ADODB.Stream" ) ;
4
3
fileStream . Type = 2 ;
5
4
var binaryStream = new ActiveXObject ( "ADODB.Stream" ) ;
@@ -171,7 +170,7 @@ function convertDocumentToMarkdown(doc) {
171
170
lastInTable = inTable ;
172
171
}
173
172
function writeDocument ( ) {
174
- var title = doc . builtInDocumentProperties . item ( 1 ) ;
173
+ var title = doc . builtInDocumentProperties . item ( 1 ) + "" ;
175
174
if ( title . length ) {
176
175
write ( "# " + title + "\n\n" ) ;
177
176
}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ module Word {
103
103
export interface Document {
104
104
fields : Fields ;
105
105
paragraphs : Paragraphs ;
106
- builtInDocumentProperties : Collection < string > ;
106
+ builtInDocumentProperties : Collection < any > ;
107
107
close ( saveChanges : boolean ) : void ;
108
108
range ( ) : Range ;
109
109
}
@@ -119,7 +119,6 @@ module Word {
119
119
}
120
120
121
121
var sys = ( function ( ) {
122
- var fso = new ActiveXObject ( "Scripting.FileSystemObject" ) ;
123
122
var fileStream = new ActiveXObject ( "ADODB.Stream" ) ;
124
123
fileStream . Type = 2 /*text*/ ;
125
124
var binaryStream = new ActiveXObject ( "ADODB.Stream" ) ;
@@ -323,7 +322,7 @@ function convertDocumentToMarkdown(doc: Word.Document): string {
323
322
}
324
323
325
324
function writeDocument ( ) {
326
- var title = doc . builtInDocumentProperties . item ( 1 ) ;
325
+ var title = doc . builtInDocumentProperties . item ( 1 ) + "" ;
327
326
if ( title . length ) {
328
327
write ( "# " + title + "\n\n" ) ;
329
328
}
You can’t perform that action at this time.
0 commit comments