Skip to content

Commit 01b1c2e

Browse files
andrewdelpretetmcw
authored andcommittedJun 4, 2020
fix comment typo
1 parent 106945c commit 01b1c2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/infer/properties.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// properties
21
const typeAnnotation = require('../type_annotation');
32
const findTarget = require('./finders').findTarget;
43

@@ -35,7 +34,7 @@ function propertyToDoc(property, prefix) {
3534
name = property.key.name || property.key.value;
3635
}
3736

38-
// Special handing for { ...$Exact<Type> }
37+
// Special handling for { ...$Exact<Type> }
3938
if (isObjectSpreadAndExactUtilTypeProperty(property)) {
4039
name = property.argument.id.name;
4140
type = {
@@ -83,7 +82,7 @@ function inferProperties(comment) {
8382
name = property.key.name;
8483
}
8584

86-
// Special handing for { ...$Exact<Type> }
85+
// Special handling for { ...$Exact<Type> }
8786
if (isObjectSpreadAndExactUtilTypeProperty(property)) {
8887
name = property.argument.id.name;
8988
}

0 commit comments

Comments
 (0)
Please sign in to comment.