File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const reArray = new RegExp(`(${unionSupport.join('|')})\\[\\]`);
61
61
62
62
const isArray = rawType => reArray . test ( rawType ) ;
63
63
64
- const isUnionlitteral = typeObj =>
64
+ const isUnionLiteral = typeObj =>
65
65
typeObj . types . every (
66
66
t =>
67
67
t . getFlags ( ) &
@@ -289,7 +289,7 @@ function gatherComponents(sources, components = {}) {
289
289
const raw = name ;
290
290
291
291
if ( propType . isUnion ( ) ) {
292
- if ( isUnionlitteral ( propType ) ) {
292
+ if ( isUnionLiteral ( propType ) ) {
293
293
return { ...getEnum ( propType ) , raw} ;
294
294
} else if ( raw . includes ( '|' ) ) {
295
295
return { ...getUnion ( propType , propObj ) , raw} ;
@@ -328,7 +328,7 @@ function gatherComponents(sources, components = {}) {
328
328
name = 'shape' ;
329
329
// If the type is declared as union it will have a types attribute.
330
330
if ( propType . types && propType . types . length ) {
331
- if ( isUnionlitteral ( propType ) ) {
331
+ if ( isUnionLiteral ( propType ) ) {
332
332
return { ...getEnum ( propType ) , raw} ;
333
333
}
334
334
return { ...getUnion ( propType , propObj ) , raw} ;
You can’t perform that action at this time.
0 commit comments