Skip to content

Commit

Permalink
fix(spawn): update ts return type
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jul 28, 2022
1 parent c5c8e9a commit d25cb70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ pub fn exec_and_dont_wait(mut command_with_args: Vec<String>, options: Option<Op
spawn_and_dont_wait(command, command_with_args, options)
}

#[napi]
#[napi(
ts_return_type = "{ isExecuted: true }"
)]
pub fn spawn_and_dont_wait(command: String, args: Vec<String>, options: Option<Options>) -> ProcessResult {
let options = Options {
..options.unwrap_or_default()
Expand Down

0 comments on commit d25cb70

Please sign in to comment.