We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a3729 commit 7969ef9Copy full SHA for 7969ef9
src/rules/noDupeKeys.js
@@ -49,7 +49,11 @@ const create = (context) => {
49
50
const builObjectStructure = (properties) => {
51
return _.map(properties, (property) => {
52
- const element = analizeElement(property.value);
+ const element = analizeElement(
53
+ property.type === 'ObjectTypeSpreadProperty' ?
54
+ property.argument :
55
+ property.value
56
+ );
57
58
return {
59
...element,
tests/rules/assertions/noDupeKeys.js
@@ -107,6 +107,9 @@ export default {
107
},
108
{
109
code: 'var a = 1; var b = 1; type f = { get(key: a): string, get(key: b): string }'
110
+ },
111
+ {
112
+ code: 'type a = { b: <C>(config: { ...C, key: string}) => C }'
113
}
114
]
115
};
0 commit comments