Skip to content

Commit cca9f9d

Browse files
committed
Minor formatting fixes
1 parent 8abc808 commit cca9f9d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: doc/TypeScript Language Specification.docx

34 Bytes
Binary file not shown.

Diff for: doc/spec.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1837,9 +1837,9 @@ Here, 'g' and 'g.x' have the same recursive type, and likewise 'h' and 'h()' hav
18371837
The `this` keyword is used to reference the this-type (section [3.6.3](#3.6.3)) of a class or interface.
18381838

18391839
  *ThisType:*
1840-
   `this
1840+
   `this`
18411841

1842-
`The meaning of a *ThisType* depends on the closest enclosing *FunctionDeclaration*, *FunctionExpression*, *PropertyDefinition*, *ClassElement*, or *TypeMember*, known as the root declaration of the *ThisType*, as follows:
1842+
The meaning of a *ThisType* depends on the closest enclosing *FunctionDeclaration*, *FunctionExpression*, *PropertyDefinition*, *ClassElement*, or *TypeMember*, known as the root declaration of the *ThisType*, as follows:
18431843

18441844
* When the root declaration is an instance member or constructor of a class, the *ThisType* references the this-type of that class.
18451845
* When the root declaration is a member of an interface type, the *ThisType* references the this-type of that interface.
@@ -2305,7 +2305,7 @@ Types are required to be assignment compatible in certain circumstances, such as
23052305
* *S* or *T* is the Any type.
23062306
* *S* is the Undefined type.
23072307
* *S* is the Null type and *T* is not the Undefined type.
2308-
* *S* or *T* is an enum type and* *the other is the primitive type Number.
2308+
* *S* or *T* is an enum type and the other is the primitive type Number.
23092309
* *S* is a string literal type and *T* is the primitive type String.
23102310
* *S* is a union type and each constituent type of *S* is assignable to *T*.
23112311
* *S* is an intersection type and at least one constituent type of *S* is assignable to *T*.
@@ -2325,7 +2325,7 @@ Types are required to be assignment compatible in certain circumstances, such as
23252325
* for parameter positions that are present in both signatures, each parameter type in *N* is assignable to or from the corresponding parameter type in *M*, and
23262326
* the result type of *M* is Void, or the result type of *N* is assignable to that of *M*.
23272327
* *M* is a string index signature of type *U*, and *U* is the Any type or *S* has an apparent string index signature of a type that is assignable to *U*.
2328-
* *M* is a numeric index signature of type *U*, and *U* is the Any type or* S* has an apparent string or numeric index signature of a type that is assignable to *U*.
2328+
* *M* is a numeric index signature of type *U*, and *U* is the Any type or *S* has an apparent string or numeric index signature of a type that is assignable to *U*.
23292329
23302330
When comparing call or construct signatures, parameter names are ignored and rest parameters correspond to an unbounded expansion of optional parameters of the rest parameter element type.
23312331
@@ -6275,9 +6275,9 @@ This appendix contains a summary of the grammar found in the main document. As d
62756275
   *TypeQueryExpression* `.` *IdentifierName*
62766276
62776277
  *ThisType:*
6278-
   `this
6278+
   `this`
62796279
6280-
  `*PropertySignature:*
6280+
  *PropertySignature:*
62816281
&emsp;&emsp;&emsp;*PropertyName*&emsp;`?`*<sub>opt</sub>*&emsp;*TypeAnnotation<sub>opt</sub>*
62826282
62836283
&emsp;&emsp;*PropertyName:*

0 commit comments

Comments
 (0)