config.insert syscall
This commit is contained in:
@@ -28,6 +28,16 @@ export function set<T>(
|
||||
return syscall("config.set", pathOrValues, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a config value into an array
|
||||
*/
|
||||
export function insert<T>(
|
||||
path: string | string[],
|
||||
value: T,
|
||||
): Promise<void> {
|
||||
return syscall("config.insert", path, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a config path exists.
|
||||
* @param path The path to check
|
||||
|
||||
Reference in New Issue
Block a user