File tree 3 files changed +4
-5
lines changed
imitate/overwrite-children
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
import isFakeable from './is-fakeable'
2
2
import isNativePrototype from './is-native-prototype'
3
3
4
- export type PropertyDescriptors < T > = {
4
+ export type PropertyDescriptors < T > = {
5
5
[ P in keyof T ] : PropertyDescriptor
6
6
}
7
7
8
- export default function gatherProps < T > ( thing : T ) : PropertyDescriptors < T > {
8
+ export default function gatherProps < T > ( thing : T ) : PropertyDescriptors < T > {
9
9
const props = { } as PropertyDescriptors < T >
10
10
while ( isFakeable ( thing ) && ! isNativePrototype ( thing ) ) {
11
11
Object . getOwnPropertyNames ( thing ) . forEach ( ( propName ) => {
Original file line number Diff line number Diff line change @@ -14,4 +14,3 @@ export { default as config } from './config'
14
14
export { default as callback } from './callback'
15
15
export { default as version } from './version'
16
16
export { quibble }
17
-
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ export default () => {
17
17
captor . values = captor . values || [ ]
18
18
captor . values . push ( actual )
19
19
captor . value = actual
20
- } ,
20
+ }
21
21
} ) ,
22
22
values : [ ] ,
23
- value : undefined ,
23
+ value : undefined
24
24
}
25
25
return captor
26
26
}
You can’t perform that action at this time.
0 commit comments