Skip to content

Commit 8e5e2e0

Browse files
authoredSep 12, 2022
Fix backticks in our JSDoc comments (#50737)
1 parent a4cabe7 commit 8e5e2e0

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed
 

‎src/lib/es2015.proxy.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interface ProxyHandler<T extends object> {
7878
* @param target The original object which is being proxied.
7979
* @param p The name or `Symbol` of the property to set.
8080
* @param receiver The object to which the assignment was originally directed.
81-
* @returns `A `Boolean` indicating whether or not the property was set.
81+
* @returns A `Boolean` indicating whether or not the property was set.
8282
*/
8383
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
8484

‎src/services/codefixes/helpers.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ namespace ts.codefix {
7070
* `MappedIndirect.ax` and `MappedIndirect.ay` have no declaration node attached (due to their mapped-type
7171
* parent):
7272
*
73-
* >>> ```ts
74-
* >>> type Base = { ax: number; ay: string };
75-
* >>> type BaseKeys = keyof Base;
76-
* >>> type MappedIndirect = { [K in BaseKeys]: boolean };
77-
* >>> ```
73+
* ```ts
74+
* type Base = { ax: number; ay: string };
75+
* type BaseKeys = keyof Base;
76+
* type MappedIndirect = { [K in BaseKeys]: boolean };
77+
* ```
7878
*
7979
* In such cases, we assume the declaration to be a `PropertySignature`.
8080
*/

‎src/services/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ namespace ts {
12141214
isGlobalCompletion: boolean;
12151215
isMemberCompletion: boolean;
12161216
/**
1217-
* In the absence of `CompletionEntry["replacementSpan"], the editor may choose whether to use
1217+
* In the absence of `CompletionEntry["replacementSpan"]`, the editor may choose whether to use
12181218
* this span or its default one. If `CompletionEntry["replacementSpan"]` is defined, that span
12191219
* must be used to commit that completion entry.
12201220
*/

‎src/services/utilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ namespace ts {
16591659
/**
16601660
* Returns true if the cursor at position in sourceFile is within a comment.
16611661
*
1662-
* @param tokenAtPosition Must equal `getTokenAtPosition(sourceFile, position)
1662+
* @param tokenAtPosition Must equal `getTokenAtPosition(sourceFile, position)`
16631663
* @param predicate Additional predicate to test on the comment range.
16641664
*/
16651665
export function isInComment(sourceFile: SourceFile, position: number, tokenAtPosition?: Node): CommentRange | undefined {

‎tests/baselines/reference/api/tsserverlibrary.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6547,7 +6547,7 @@ declare namespace ts {
65476547
isGlobalCompletion: boolean;
65486548
isMemberCompletion: boolean;
65496549
/**
6550-
* In the absence of `CompletionEntry["replacementSpan"], the editor may choose whether to use
6550+
* In the absence of `CompletionEntry["replacementSpan"]`, the editor may choose whether to use
65516551
* this span or its default one. If `CompletionEntry["replacementSpan"]` is defined, that span
65526552
* must be used to commit that completion entry.
65536553
*/

‎tests/baselines/reference/api/typescript.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6547,7 +6547,7 @@ declare namespace ts {
65476547
isGlobalCompletion: boolean;
65486548
isMemberCompletion: boolean;
65496549
/**
6550-
* In the absence of `CompletionEntry["replacementSpan"], the editor may choose whether to use
6550+
* In the absence of `CompletionEntry["replacementSpan"]`, the editor may choose whether to use
65516551
* this span or its default one. If `CompletionEntry["replacementSpan"]` is defined, that span
65526552
* must be used to commit that completion entry.
65536553
*/

0 commit comments

Comments
 (0)
Please sign in to comment.