@@ -102,7 +102,7 @@ function asHandle<T extends object>(
102102 * expect(client.get("feature-enabled")).toBe(false);
103103 *
104104 * // With overrides
105- * client.setConfig ("rate-limit", 100, {
105+ * client.set ("rate-limit", 100, {
106106 * overrides: [{
107107 * name: "premium-users",
108108 * conditions: [{ operator: "equals", property: "plan", value: "premium" }],
@@ -157,22 +157,6 @@ export class InMemoryReplaneClient<T extends object = Record<string, unknown>> {
157157 return asHandle(this)._impl.getSnapshot();
158158 }
159159
160- /**
161- * Set a config value (simple form without overrides).
162- *
163- * @param name - Config name
164- * @param value - Config value
165- *
166- * @example
167- * ```typescript
168- * client.set("feature-enabled", true);
169- * client.set("rate-limit", 500);
170- * ```
171- */
172- set<K extends keyof T>(name: K, value: T[K]): void {
173- asHandle(this)._impl.set(name, value);
174- }
175-
176160 /**
177161 * Set a config with optional overrides.
178162 *
@@ -182,7 +166,7 @@ export class InMemoryReplaneClient<T extends object = Record<string, unknown>> {
182166 *
183167 * @example
184168 * ```typescript
185- * client.setConfig ("rate-limit", 100, {
169+ * client.set ("rate-limit", 100, {
186170 * overrides: [{
187171 * name: "premium-users",
188172 * conditions: [
@@ -193,8 +177,8 @@ export class InMemoryReplaneClient<T extends object = Record<string, unknown>> {
193177 * });
194178 * ```
195179 */
196- setConfig <K extends keyof T>(name: K, value: T[K], options?: SetConfigOptions): void {
197- asHandle(this)._impl.setConfig (name, value, options);
180+ set <K extends keyof T>(name: K, value: T[K], options?: SetConfigOptions): void {
181+ asHandle(this)._impl.set (name, value, options);
198182 }
199183
200184 /**
@@ -327,11 +311,7 @@ class InMemoryReplaneClientImpl<T extends object = Record<string, unknown>> {
327311 };
328312 }
329313
330- set<K extends keyof T>(name: K, value: T[K]): void {
331- this.setConfig(name, value);
332- }
333-
334- setConfig<K extends keyof T>(name: K, value: T[K], options?: SetConfigOptions): void {
314+ set<K extends keyof T>(name: K, value: T[K], options?: SetConfigOptions): void {
335315 const overrides: Override[] = options?.overrides ?? [];
336316
337317 const config: ConfigDto = {
0 commit comments