Skip to content

Commit 01b1c2e

Browse files
andrewdelpretetmcw
authored andcommitted
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

Lines changed: 2 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy