Skip to content

Commit 655539e

Browse files
authored
Merge pull request #56 from nikeee/tsdoc
Use JSDoc for type comments where possible
2 parents 89c3021 + a5b55b3 commit 655539e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

index.d.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@ export interface CommentObject {
3737

3838
export interface CommentToken {
3939
type: 'BlockComment' | 'LineComment'
40-
// The content of the comment, including whitespaces and line breaks
40+
/** The content of the comment, including whitespaces and line breaks */
4141
value: string
42-
// If the start location is the same line as the previous token,
43-
// then `inline` is `true`
42+
/**
43+
* If the start location is the same line as the previous token,
44+
* then `inline` is `true`
45+
*/
4446
inline: boolean
45-
// But pay attention that,
46-
// locations will NOT be maintained when stringified
47+
/* But pay attention that, locations will NOT be maintained when stringified */
4748
loc: CommentLocation
4849
}
4950

5051
export interface CommentLocation {
51-
// The start location begins at the `//` or `/*` symbol
52+
/** The start location begins at the `//` or `/*` symbol */
5253
start: Location
5354
// The end location of multi-line comment ends at the `*/` symbol
5455
end: Location

0 commit comments

Comments
 (0)