Commit a806f91 1 parent 9b29b64 commit a806f91 Copy full SHA for a806f91
File tree 2 files changed +12
-10
lines changed
2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -325,19 +325,21 @@ export function ref<T extends object>(obj: T) {
325
325
// unstable APIs (subject to change without notice)
326
326
// ------------------------------------------------
327
327
328
- export const unstable_getInternalStates = ( ) : {
328
+ export function unstable_getInternalStates ( ) : {
329
329
proxyStateMap : typeof proxyStateMap
330
330
refSet : typeof refSet
331
331
snapCache : typeof snapCache
332
332
versionHolder : typeof versionHolder
333
333
proxyCache : typeof proxyCache
334
- } => ( {
335
- proxyStateMap,
336
- refSet,
337
- snapCache,
338
- versionHolder,
339
- proxyCache,
340
- } )
334
+ } {
335
+ return {
336
+ proxyStateMap,
337
+ refSet,
338
+ snapCache,
339
+ versionHolder,
340
+ proxyCache,
341
+ }
342
+ }
341
343
342
344
export function unstable_replaceInternalFunction (
343
345
name : 'objectIs' ,
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ const getDefaultRefSet = (): WeakSet<object> => {
11
11
return defaultRefSet
12
12
}
13
13
14
- export const deepClone = < T > (
14
+ export function deepClone < T > (
15
15
obj : T ,
16
16
getRefSet : ( ) => WeakSet < object > = getDefaultRefSet ,
17
- ) : T => {
17
+ ) : T {
18
18
if ( ! isObject ( obj ) || getRefSet ( ) . has ( obj ) ) {
19
19
return obj
20
20
}
You can’t perform that action at this time.
0 commit comments