Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 13, 2019
1 parent 1a5d1cb commit a92abc0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,16 @@ declare namespace execa {
killed: boolean;

/**
The name of the signal that was used to terminate the process.
The name of the signal that was used to terminate the process. For example `"SIGFPE"`.
If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.
*/
signal?: string;

/**
A human-friendly description of the signal that was used to terminate the process.
A human-friendly description of the signal that was used to terminate the process. For example `"Floating point arithmetic error"`.
If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.
*/
signalDescription?: string;
}
Expand Down
8 changes: 6 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,17 @@ Whether the process was killed.

Type: `string | undefined`

The name of the signal that was used to terminate the process.
The name of the signal that was used to terminate the process. For example `"SIGFPE"`.

If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.

#### signalDescription

Type: `string | undefined`

A human-friendly description of the signal that was used to terminate the process.
A human-friendly description of the signal that was used to terminate the process. For example `"Floating point arithmetic error"`.

If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.

#### originalMessage

Expand Down

0 comments on commit a92abc0

Please sign in to comment.