Skip to content

Commit efb54ce

Browse files
T4rk1nalexcjohnson
andcommitted
Update dash/extract-meta.js
Co-authored-by: Alex Johnson <[email protected]>
1 parent 59620fe commit efb54ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: dash/extract-meta.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const reArray = new RegExp(`(${unionSupport.join('|')})\\[\\]`);
6161

6262
const isArray = rawType => reArray.test(rawType);
6363

64-
const isUnionlitteral = typeObj =>
64+
const isUnionLiteral = typeObj =>
6565
typeObj.types.every(
6666
t =>
6767
t.getFlags() &
@@ -289,7 +289,7 @@ function gatherComponents(sources, components = {}) {
289289
const raw = name;
290290

291291
if (propType.isUnion()) {
292-
if (isUnionlitteral(propType)) {
292+
if (isUnionLiteral(propType)) {
293293
return {...getEnum(propType), raw};
294294
} else if (raw.includes('|')) {
295295
return {...getUnion(propType, propObj), raw};
@@ -328,7 +328,7 @@ function gatherComponents(sources, components = {}) {
328328
name = 'shape';
329329
// If the type is declared as union it will have a types attribute.
330330
if (propType.types && propType.types.length) {
331-
if (isUnionlitteral(propType)) {
331+
if (isUnionLiteral(propType)) {
332332
return {...getEnum(propType), raw};
333333
}
334334
return {...getUnion(propType, propObj), raw};

0 commit comments

Comments
 (0)