File tree Expand file tree Collapse file tree
packages/gephi-lite/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ function visitCallExpression(
172172 // function argument
173173 if ( optionsNode && ts . isObjectLiteralExpression ( optionsNode ) ) {
174174 const optionsType = checker . getTypeAtLocation ( optionsNode ) ;
175- const nsSymbol = optionsType . symbol . members ?. get ( ts . escapeLeadingUnderscores ( "ns" ) ) ;
175+ const nsSymbol = optionsType . symbol ? .members ?. get ( ts . escapeLeadingUnderscores ( "ns" ) ) ;
176176 if (
177177 nsSymbol &&
178178 nsSymbol . valueDeclaration &&
@@ -184,7 +184,7 @@ function visitCallExpression(
184184
185185 // The key prefix option is only valid if getFixedT() was called with a
186186 // prefix
187- const keyPrefixSymbol = optionsType . symbol . members ?. get ( ts . escapeLeadingUnderscores ( "keyPrefix" ) ) ;
187+ const keyPrefixSymbol = optionsType . symbol ? .members ?. get ( ts . escapeLeadingUnderscores ( "keyPrefix" ) ) ;
188188 if (
189189 prefix &&
190190 keyPrefixSymbol &&
You can’t perform that action at this time.
0 commit comments