Skip to content

Commit 549fbf5

Browse files
committed
Adjusting indentation
1 parent 3f65a31 commit 549fbf5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

doc/spec.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function f() {
262262

263263
To benefit from this inference, a programmer can use the TypeScript language service. For example, a code editor can incorporate the TypeScript language service and use the service to find the members of a string object as in the following screen shot.
264264

265-
![](images/image1.png)
265+
   ![](images/image1.png)
266266

267267
In this example, the programmer benefits from type inference without providing type annotations. Some beneficial tools, however, do require the programmer to provide type annotations. In TypeScript, we can express a parameter requirement as in the following code fragment.
268268

@@ -410,7 +410,7 @@ This signature denotes that a function may be passed as the parameter of the '$'
410410
411411
A typical client would not need to add any additional typing but could just use a community-supplied typing to discover (through statement completion with documentation tips) and verify (through static checking) correct use of the library, as in the following screen shot.
412412
413-
![](images/image2.png)
413+
   ![](images/image2.png)
414414
415415
Section [3.3](#3.3) provides additional information about object types.
416416
@@ -627,7 +627,7 @@ An important goal of TypeScript is to provide accurate and straightforward types
627627

628628
JavaScript programming interfaces often include functions whose behavior is discriminated by a string constant passed to the function. The Document Object Model makes heavy use of this pattern. For example, the following screen shot shows that the 'createElement' method of the 'document' object has multiple signatures, some of which identify the types returned when specific strings are passed into the method.
629629

630-
![](images/image3.png)
630+
   ![](images/image3.png)
631631

632632
The following code fragment uses this feature. Because the 'span' variable is inferred to have the type 'HTMLSpanElement', the code can reference without static error the 'isMultiline' property of 'span'.
633633

@@ -638,7 +638,7 @@ span.isMultiLine = false; // OK: HTMLSpanElement has isMultiline property
638638

639639
In the following screen shot, a programming tool combines information from overloading on string parameters with contextual typing to infer that the type of the variable 'e' is 'MouseEvent' and that therefore 'e' has a 'clientX' property.
640640

641-
![](images/image4.png)
641+
   ![](images/image4.png)
642642

643643
Section [3.9.2.4](#3.9.2.4) provides details on how to use string literals in function signatures.
644644

scripts/word2md.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/word2md.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function convertDocumentToMarkdown(doc: Word.Document): string {
279279
}
280280
else if (containsImage) {
281281
imageCount++;
282-
write("![](images/image" + imageCount + ".png)\n\n");
282+
write("   ![](images/image" + imageCount + ".png)\n\n");
283283
text = "";
284284
}
285285
else if (style.match(/\s\d$/)) {

0 commit comments

Comments
 (0)