Skip to content

Commit 8ebce61

Browse files
Lint
1 parent 0cc4f95 commit 8ebce61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/firestore/scripts/prune-dts.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function convertPropertiesForEnclosingClass(
250250
sourceFile: ts.SourceFile,
251251
parentClassSymbols: ts.Symbol[],
252252
currentClass: ts.ClassDeclaration | ts.InterfaceDeclaration
253-
): Array<ts.NamedDeclaration> {
253+
): ts.NamedDeclaration[] {
254254
const newMembers: ts.NamedDeclaration[] = [];
255255
// The `codefix` package is not public but it does exactly what we want. We
256256
// can explore adding a slimmed down version of this package to our repository
@@ -329,11 +329,11 @@ function extractPublicSymbol(
329329
return publicSymbolsForLocalType[0];
330330
}
331331

332-
const dropPrivateApiTransformer = (
332+
function dropPrivateApiTransformer(
333333
program: ts.Program,
334334
host: ts.CompilerHost,
335335
context: ts.TransformationContext
336-
) => {
336+
): ts.Transformer<ts.SourceFile> {
337337
const typeChecker = program.getTypeChecker();
338338

339339
return (sourceFile: ts.SourceFile) => {
@@ -402,7 +402,7 @@ const dropPrivateApiTransformer = (
402402
}
403403
return visitNodeAndChildren(sourceFile);
404404
};
405-
};
405+
}
406406

407407
const argv = yargs.options({
408408
input: {

0 commit comments

Comments
 (0)