Skip to content

Commit be882dd

Browse files
committed
chore: use jsdoc syntax
to support LSP
1 parent 1d7843c commit be882dd

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/types.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
// The following formats are valid:
2-
// - v1
3-
// - v1.2
4-
// - v1.2.3
1+
/**
2+
* The following formats are valid:
3+
* - v1
4+
* - v1.2
5+
* - v1.2.3
6+
*/
57
export type SemanticVersion =
68
| ExactSemanticVersion
79
| (string & { readonly __tag: unique symbol });
810

9-
// The following format is valid: v1.2.3
11+
/**
12+
* The following format is valid: v1.2.3
13+
*/
1014
export type ExactSemanticVersion = string & { readonly __tag: unique symbol };
1115

1216
export function isExactSemanticVersion(

0 commit comments

Comments
 (0)