Skip to content

Commit 725a34a

Browse files
committed
Correct JSDoc for more object types
1 parent e5afe51 commit 725a34a

4 files changed

Lines changed: 29 additions & 21 deletions

File tree

tests/functional/helpers/environment.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import Repo from './repo.js';
88
* Describes the package that is used to initialize a polyrepo, or one of the
99
* packages that is used to initialize a monorepo.
1010
*
11-
* name - The desired name of the package.
11+
* Properties:
1212
*
13-
* version - The desired version of the package.
14-
*
15-
* directory - The path relative to the repo's root directory that
16-
* holds this package.
13+
* - `name` - The desired name of the package.
14+
* - `version` - The desired version of the package.
15+
* - `directory` - The path relative to the repo's root directory that holds
16+
* this package.
1717
*/
1818
export type PackageSpecification = {
1919
name: string;
@@ -24,13 +24,13 @@ export type PackageSpecification = {
2424
/**
2525
* A set of configuration options for an {@link Environment}.
2626
*
27-
* directoryPath - The directory out of which this environment will
28-
* operate.
27+
* Properties:
2928
*
30-
* createInitialCommit - Usually when a repo is initialized, a commit
31-
* is created (which will contain starting `package.json` files). You can use
32-
* this option to disable that if you need to create your own commits for
33-
* clarity.
29+
* - `directoryPath` - The directory out of which this environment will operate.
30+
* - `createInitialCommit` - Usually when a repo is initialized, a commit is
31+
* created (which will contain starting `package.json` files). You can use
32+
* this option to disable that if you need to create your own commits for
33+
* clarity.
3434
*/
3535
export type EnvironmentOptions = {
3636
directoryPath: string;

tests/functional/helpers/local-monorepo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { knownKeysOf } from './utils.js';
88
* A set of configuration options for a {@link LocalMonorepo}. In addition
99
* to the options listed in {@link LocalRepoOptions}, these include:
1010
*
11-
* packages - The known packages within this repo (including the
12-
* root).
11+
* Properties
1312
*
14-
* workspaces - The known workspaces within this repo.
13+
* - `packages` - The known packages within this repo (including the root).
14+
* - `workspaces` - The known workspaces within this repo.
1515
*/
1616
export type LocalMonorepoOptions<WorkspacePackageNickname extends string> = {
1717
packages: Record<WorkspacePackageNickname, PackageSpecification>;

tests/functional/helpers/monorepo-environment.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ import { debug, knownKeysOf } from './utils.js';
1515
* A set of configuration options for a {@link MonorepoEnvironment}. In addition
1616
* to the options listed in {@link EnvironmentOptions}, these include:
1717
*
18-
* packages - The known packages within this repo (including the
19-
* root).
18+
* Properties:
2019
*
21-
* workspaces - The known workspaces within this repo.
20+
* - `packages` - The known packages within this repo (including the root).
21+
* - `workspaces` - The known workspaces within this repo.
22+
* - `directoryPath` - The directory out of which this environment will operate.
23+
* - `createInitialCommit` - Usually when a repo is initialized, a commit is
24+
* created (which will contain starting `package.json` files). You can use
25+
* this option to disable that if you need to create your own commits for
26+
* clarity.
2227
*/
2328
export type MonorepoEnvironmentOptions<
2429
WorkspacePackageNickname extends string,
@@ -30,8 +35,9 @@ export type MonorepoEnvironmentOptions<
3035
/**
3136
* The release specification data.
3237
*
33-
* packages - The workspace packages within this repo that will be
34-
* released.
38+
* Properties:
39+
*
40+
* - `packages` - The workspace packages within this repo that will be released.
3541
*/
3642
type ReleaseSpecification<WorkspacePackageNickname extends string> = {
3743
packages: Partial<Record<WorkspacePackageNickname, string>>;

tests/functional/helpers/repo.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import { isErrorWithCode } from '../../helpers.js';
99
/**
1010
* A set of configuration options for a {@link Repo}.
1111
*
12-
* environmentDirectoryPath - The directory that holds the environment
13-
* that created this repo.
12+
* Properties:
13+
*
14+
* - `environmentDirectoryPath` - The directory that holds the environment that
15+
* created this repo.
1416
*/
1517
export type RepoOptions = {
1618
environmentDirectoryPath: string;

0 commit comments

Comments
 (0)