Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
D4N14L committed Dec 7, 2023
1 parent cde66f7 commit 8e81f71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 2 additions & 8 deletions common/reviews/api/node-core-library.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -752,19 +752,13 @@ export interface IWaitForExitResult<T extends Buffer | string | never = never> {
stdout: T;
}

// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The package "@rushstack/node-core-library" does not have an export "IRunToCompletionOptions"
//
// @public (undocumented)
// @public
export interface IWaitForExitWithBufferOptions extends IWaitForExitOptions {
// (undocumented)
encoding: 'buffer';
}

// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The package "@rushstack/node-core-library" does not have an export "IRunToCompletionOptions"
//
// @public (undocumented)
// @public
export interface IWaitForExitWithStringOptions extends IWaitForExitOptions {
// (undocumented)
encoding: BufferEncoding;
}

Expand Down
12 changes: 9 additions & 3 deletions libraries/node-core-library/src/Executable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,26 @@ export interface IWaitForExitOptions {
}

/**
* {@inheritDoc IRunToCompletionOptions}
* {@inheritDoc IWaitForExitOptions}
*
* @public
*/
export interface IWaitForExitWithStringOptions extends IWaitForExitOptions {
/**
* {@inheritDoc IWaitForExitOptions.encoding}
*/
encoding: BufferEncoding;
}

/**
* {@inheritDoc IRunToCompletionOptions}
* {@inheritDoc IWaitForExitOptions}
*
* @public
*/
export interface IWaitForExitWithBufferOptions extends IWaitForExitOptions {
/**
* {@inheritDoc IWaitForExitOptions.encoding}
*/
encoding: 'buffer';
}

Expand Down Expand Up @@ -529,7 +535,7 @@ export class Executable {
const { throwOnNonZeroExitCode = false, encoding } = options;
if (encoding && (!childProcess.stdout || !childProcess.stderr)) {
throw new Error(
'An encoding was specified, but stdout and/or stderr are not piped. Did you set stdio?'
'An encoding was specified, but stdout and/or stderr on the child process are not defined'
);
}

Expand Down

0 comments on commit 8e81f71

Please sign in to comment.