config.insert syscall

This commit is contained in:
Zef Hemel
2025-10-31 09:13:24 +01:00
parent 2ac006d354
commit 5654a6bc6d
4 changed files with 43 additions and 0 deletions
+10
View File
@@ -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