fix kernelsu.spawn && add type definitions (#1395)

This commit is contained in:
Mufanc
2024-02-26 15:35:23 +08:00
committed by GitHub
parent afe0e691aa
commit 2fb5334ac6
2 changed files with 46 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ function Stdio() {
export function spawn(command, args, options) {
if (typeof args === "undefined") {
args = [];
} else if (typeof args === "object") {
} else if (!(args instanceof Array)) {
// allow for (command, options) signature
options = args;
}