Skip to content

Commit d28fe7e

Browse files
committed
doh
1 parent 967ccc5 commit d28fe7e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/svelte/src/internal/client/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export {
141141
} from './runtime.js';
142142
export { validate_binding, validate_each_keys } from './validate.js';
143143
export { raf } from './timing.js';
144-
export { proxy } from './proxy.js';
144+
export { proxy, return_proxy } from './proxy.js';
145145
export { create_custom_element } from './dom/elements/custom-element.js';
146146
export {
147147
child,

packages/svelte/src/internal/client/proxy.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,10 @@ export function proxy(value) {
286286
/**
287287
* @template T
288288
* @param {T} value
289-
* @param {Source<T>} [prev]
290289
* @returns {T | void}
291290
*/
292-
export function return_proxy(value, prev) {
293-
const res = proxy(value, prev);
291+
export function return_proxy(value) {
292+
const res = proxy(value);
294293
if (res !== value || (typeof value === 'object' && value !== null && STATE_SYMBOL in value)) {
295294
// if the argument passed was already a proxy, we don't warn
296295
return res;

0 commit comments

Comments
 (0)