Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct JSDoc for more object types
  • Loading branch information
mcmire committed Dec 11, 2025
commit 725a34a5d3110675d90a0d5159a641368866ce89
22 changes: 11 additions & 11 deletions tests/functional/helpers/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import Repo from './repo.js';
* Describes the package that is used to initialize a polyrepo, or one of the
* packages that is used to initialize a monorepo.
*
* name - The desired name of the package.
* Properties:
*
* version - The desired version of the package.
*
* directory - The path relative to the repo's root directory that
* holds this package.
* - `name` - The desired name of the package.
* - `version` - The desired version of the package.
* - `directory` - The path relative to the repo's root directory that holds
* this package.
*/
export type PackageSpecification = {
name: string;
Expand All @@ -24,13 +24,13 @@ export type PackageSpecification = {
/**
* A set of configuration options for an {@link Environment}.
*
* directoryPath - The directory out of which this environment will
* operate.
* Properties:
*
* createInitialCommit - Usually when a repo is initialized, a commit
* is created (which will contain starting `package.json` files). You can use
* this option to disable that if you need to create your own commits for
* clarity.
* - `directoryPath` - The directory out of which this environment will operate.
* - `createInitialCommit` - Usually when a repo is initialized, a commit is
* created (which will contain starting `package.json` files). You can use
* this option to disable that if you need to create your own commits for
* clarity.
*/
export type EnvironmentOptions = {
directoryPath: string;
Expand Down
6 changes: 3 additions & 3 deletions tests/functional/helpers/local-monorepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { knownKeysOf } from './utils.js';
* A set of configuration options for a {@link LocalMonorepo}. In addition
* to the options listed in {@link LocalRepoOptions}, these include:
*
* packages - The known packages within this repo (including the
* root).
* Properties
*
* workspaces - The known workspaces within this repo.
* - `packages` - The known packages within this repo (including the root).
* - `workspaces` - The known workspaces within this repo.
*/
export type LocalMonorepoOptions<WorkspacePackageNickname extends string> = {
packages: Record<WorkspacePackageNickname, PackageSpecification>;
Expand Down
16 changes: 11 additions & 5 deletions tests/functional/helpers/monorepo-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ import { debug, knownKeysOf } from './utils.js';
* A set of configuration options for a {@link MonorepoEnvironment}. In addition
* to the options listed in {@link EnvironmentOptions}, these include:
*
* packages - The known packages within this repo (including the
* root).
* Properties:
*
* workspaces - The known workspaces within this repo.
* - `packages` - The known packages within this repo (including the root).
* - `workspaces` - The known workspaces within this repo.
* - `directoryPath` - The directory out of which this environment will operate.
* - `createInitialCommit` - Usually when a repo is initialized, a commit is
* created (which will contain starting `package.json` files). You can use
* this option to disable that if you need to create your own commits for
* clarity.
*/
export type MonorepoEnvironmentOptions<
WorkspacePackageNickname extends string,
Expand All @@ -30,8 +35,9 @@ export type MonorepoEnvironmentOptions<
/**
* The release specification data.
*
* packages - The workspace packages within this repo that will be
* released.
* Properties:
*
* - `packages` - The workspace packages within this repo that will be released.
*/
type ReleaseSpecification<WorkspacePackageNickname extends string> = {
packages: Partial<Record<WorkspacePackageNickname, string>>;
Expand Down
6 changes: 4 additions & 2 deletions tests/functional/helpers/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import { isErrorWithCode } from '../../helpers.js';
/**
* A set of configuration options for a {@link Repo}.
*
* environmentDirectoryPath - The directory that holds the environment
* that created this repo.
* Properties:
*
* - `environmentDirectoryPath` - The directory that holds the environment that
* created this repo.
*/
export type RepoOptions = {
environmentDirectoryPath: string;
Expand Down
Loading