Skip to content

Commit 8203d4d

Browse files
Better comment
1 parent ea361a4 commit 8203d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firestore/scripts/extract-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ function extractIdentifiersFromNodeAndChildren(
3232
);
3333
}
3434

35+
/** Generates the "d.ts" content for `fileName`. */
3536
function extractTypeDeclaration(fileName: string): string {
3637
const compilerOptions = { declaration: true, emitDeclarationOnly: true };
3738
let dtsSource: string;
3839
const host = ts.createCompilerHost(compilerOptions);
39-
host.writeFile = (fileName: string, contents: string) =>
40-
(dtsSource = contents);
40+
host.writeFile = (_: string, contents: string) => (dtsSource = contents);
4141
const program = ts.createProgram([fileName], compilerOptions, host);
4242
program.emit();
4343
return dtsSource!;

0 commit comments

Comments
 (0)