chore(client): add some documentation

This commit is contained in:
Elian Doran
2025-08-20 20:34:00 +03:00
parent db6f948499
commit 4ec46a2ebd
3 changed files with 51 additions and 0 deletions

View File

@@ -77,6 +77,10 @@ class Options {
await server.put(`options`, payload);
}
/**
* Saves multiple options at once, by supplying a record where the keys are the option names and the values represent the stringified value to set.
* @param newValues the record of keys and values.
*/
async saveMany<T extends OptionNames>(newValues: Record<T, OptionValue>) {
await server.put<void>("options", newValues);
}