File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ function keepPublicFunctionsTransformer(
221
221
undefined ,
222
222
ts . createNamedImports ( [
223
223
ts . createImportSpecifier (
224
+ false ,
224
225
ts . createIdentifier ( 'FirebaseApp' ) ,
225
226
ts . createIdentifier ( 'FirebaseAppCompat' )
226
227
)
@@ -236,7 +237,7 @@ function keepPublicFunctionsTransformer(
236
237
undefined ,
237
238
ts . createNamedImports (
238
239
Array . from ( typesToImport ) . map ( typeName =>
239
- ts . createImportSpecifier ( undefined , ts . createIdentifier ( typeName ) )
240
+ ts . createImportSpecifier ( true , undefined , ts . createIdentifier ( typeName ) )
240
241
)
241
242
)
242
243
) ,
@@ -302,7 +303,7 @@ function findTypes(
302
303
// include the type if it's not in the excludes list or a builtin type
303
304
if ( ! typesToIgnore . includes ( typeName ) ) {
304
305
const symbol = typeCheck . getSymbolAtLocation ( node . typeName ) ;
305
- const declaration = symbol ?. declarations [ 0 ] ;
306
+ const declaration = symbol ?. declarations ?. [ 0 ] ;
306
307
307
308
// ignore type parameters.
308
309
if ( ! declaration || ! ts . isTypeParameterDeclaration ( declaration ) ) {
You can’t perform that action at this time.
0 commit comments