fix kernelsu.spawn && add type definitions (#1395)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user