Skip to content

Commit fc6e2df

Browse files
authored
fix: generated version documentation (#4778)
1 parent 80c6508 commit fc6e2df

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

resources/gen-version.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ if (!versionMatch) {
1212
const [, major, minor, patch, preReleaseTag] = versionMatch;
1313

1414
const body = `
15+
/** @category Version */
16+
1517
// Note: This file is autogenerated using "resources/gen-version.js" script and
1618
// automatically updated by "npm version" command.
1719
18-
/**
19-
* A string containing the version of the GraphQL.js library
20-
*/
20+
/** A string containing the version of the GraphQL.js library */
2121
export const version = '${version}' as string;
2222
23-
/**
24-
* An object containing the components of the GraphQL.js version string
25-
*/
23+
/** An object containing the components of the GraphQL.js version string */
2624
export const versionInfo = Object.freeze({
2725
major: ${major} as number,
2826
minor: ${minor} as number,

src/version.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1+
/** @category Version */
2+
13
// Note: This file is autogenerated using "resources/gen-version.js" script and
24
// automatically updated by "npm version" command.
35

4-
/**
5-
* A string containing the version of the GraphQL.js library
6-
* @category Version
7-
*/
6+
/** A string containing the version of the GraphQL.js library */
87
export const version = '16.14.0' as string;
98

10-
/**
11-
* An object containing the components of the GraphQL.js version string
12-
* @category Version
13-
*/
9+
/** An object containing the components of the GraphQL.js version string */
1410
export const versionInfo = Object.freeze({
1511
major: 16 as number,
1612
minor: 14 as number,

0 commit comments

Comments
 (0)