We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea361a4 commit 8203d4dCopy full SHA for 8203d4d
packages/firestore/scripts/extract-api.ts
@@ -32,12 +32,12 @@ function extractIdentifiersFromNodeAndChildren(
32
);
33
}
34
35
+/** Generates the "d.ts" content for `fileName`. */
36
function extractTypeDeclaration(fileName: string): string {
37
const compilerOptions = { declaration: true, emitDeclarationOnly: true };
38
let dtsSource: string;
39
const host = ts.createCompilerHost(compilerOptions);
- host.writeFile = (fileName: string, contents: string) =>
40
- (dtsSource = contents);
+ host.writeFile = (_: string, contents: string) => (dtsSource = contents);
41
const program = ts.createProgram([fileName], compilerOptions, host);
42
program.emit();
43
return dtsSource!;
0 commit comments