Skip to content

Commit cfa0dd6

Browse files
Switch union types to avoid darklua issue
1 parent 728778e commit cfa0dd6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utilities/TypeInfo.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ end
8585
-- */
8686
export type TypeInfo = {
8787
_schema: GraphQLSchema,
88-
_typeStack: Array<GraphQLOutputType? | NULL>,
89-
_parentTypeStack: Array<GraphQLCompositeType? | NULL>,
90-
_inputTypeStack: Array<GraphQLInputType? | NULL>,
91-
_fieldDefStack: Array<GraphQLField<any, any>? | NULL>,
92-
_defaultValueStack: Array<any? | NULL>,
88+
_typeStack: Array<NULL | GraphQLOutputType?>,
89+
_parentTypeStack: Array<NULL | GraphQLCompositeType?>,
90+
_inputTypeStack: Array<NULL | GraphQLInputType?>,
91+
_fieldDefStack: Array<NULL | GraphQLField<any, any>?>,
92+
_defaultValueStack: Array<NULL | any?>,
9393
_directive: GraphQLDirective?,
9494
_argument: GraphQLArgument?,
9595
_enumValue: GraphQLEnumValue?,

0 commit comments

Comments
 (0)