File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export {
141
141
} from './runtime.js' ;
142
142
export { validate_binding , validate_each_keys } from './validate.js' ;
143
143
export { raf } from './timing.js' ;
144
- export { proxy } from './proxy.js' ;
144
+ export { proxy , return_proxy } from './proxy.js' ;
145
145
export { create_custom_element } from './dom/elements/custom-element.js' ;
146
146
export {
147
147
child ,
Original file line number Diff line number Diff line change @@ -286,11 +286,10 @@ export function proxy(value) {
286
286
/**
287
287
* @template T
288
288
* @param {T } value
289
- * @param {Source<T> } [prev]
290
289
* @returns {T | void }
291
290
*/
292
- export function return_proxy ( value , prev ) {
293
- const res = proxy ( value , prev ) ;
291
+ export function return_proxy ( value ) {
292
+ const res = proxy ( value ) ;
294
293
if ( res !== value || ( typeof value === 'object' && value !== null && STATE_SYMBOL in value ) ) {
295
294
// if the argument passed was already a proxy, we don't warn
296
295
return res ;
You can’t perform that action at this time.
0 commit comments