mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 20:14:05 -05:00
Fix backticks in our JSDoc comments (#50737)
This commit is contained in:
@@ -70,11 +70,11 @@ namespace ts.codefix {
|
||||
* `MappedIndirect.ax` and `MappedIndirect.ay` have no declaration node attached (due to their mapped-type
|
||||
* parent):
|
||||
*
|
||||
* >>> ```ts
|
||||
* >>> type Base = { ax: number; ay: string };
|
||||
* >>> type BaseKeys = keyof Base;
|
||||
* >>> type MappedIndirect = { [K in BaseKeys]: boolean };
|
||||
* >>> ```
|
||||
* ```ts
|
||||
* type Base = { ax: number; ay: string };
|
||||
* type BaseKeys = keyof Base;
|
||||
* type MappedIndirect = { [K in BaseKeys]: boolean };
|
||||
* ```
|
||||
*
|
||||
* In such cases, we assume the declaration to be a `PropertySignature`.
|
||||
*/
|
||||
|
||||
@@ -1214,7 +1214,7 @@ namespace ts {
|
||||
isGlobalCompletion: boolean;
|
||||
isMemberCompletion: boolean;
|
||||
/**
|
||||
* In the absence of `CompletionEntry["replacementSpan"], the editor may choose whether to use
|
||||
* In the absence of `CompletionEntry["replacementSpan"]`, the editor may choose whether to use
|
||||
* this span or its default one. If `CompletionEntry["replacementSpan"]` is defined, that span
|
||||
* must be used to commit that completion entry.
|
||||
*/
|
||||
|
||||
@@ -1659,7 +1659,7 @@ namespace ts {
|
||||
/**
|
||||
* Returns true if the cursor at position in sourceFile is within a comment.
|
||||
*
|
||||
* @param tokenAtPosition Must equal `getTokenAtPosition(sourceFile, position)
|
||||
* @param tokenAtPosition Must equal `getTokenAtPosition(sourceFile, position)`
|
||||
* @param predicate Additional predicate to test on the comment range.
|
||||
*/
|
||||
export function isInComment(sourceFile: SourceFile, position: number, tokenAtPosition?: Node): CommentRange | undefined {
|
||||
|
||||
Reference in New Issue
Block a user