diff --git a/src/process/OptionsProcess.ts b/src/process/SystemSettingProcess.ts similarity index 50% rename from src/process/OptionsProcess.ts rename to src/process/SystemSettingProcess.ts index 5db4d0d..12abc14 100644 --- a/src/process/OptionsProcess.ts +++ b/src/process/SystemSettingProcess.ts @@ -2,8 +2,21 @@ import { SDWebUIA1111Client } from "../client"; import { SDProcessing } from "./SDProcessing"; import { SDWebUIA1111SystemSettings } from "./system.types"; -// for typescript -export class OptionsProcess extends SDProcessing< +/** + * SystemSettingProcess + * + * usage: + * ```ts + * const client = new SDWebUIA1111Client(); + * const process = new SystemSettingProcess({ + * samples_save: true, + * samples_format: "png", + * samples_filename_pattern: "sample", + * }); + * await process.request(client); + * ``` + */ +export class SystemSettingProcess extends SDProcessing< Partial > { request(client: SDWebUIA1111Client) { diff --git a/src/process/index.ts b/src/process/index.ts index 9e99052..0bd514b 100644 --- a/src/process/index.ts +++ b/src/process/index.ts @@ -1,6 +1,6 @@ export * from "./Img2imgProcess"; export * from "./Txt2imgProcess"; -export * from "./OptionsProcess"; +export * from "./SystemSettingProcess"; export * from "./types"; export * from "./system.types";