summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types
diff options
context:
space:
mode:
Diffstat (limited to 'packages/typescript-types')
-rw-r--r--packages/typescript-types/extract-dom-types.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/typescript-types/extract-dom-types.ts b/packages/typescript-types/extract-dom-types.ts
index 436ac5b..2422fe5 100644
--- a/packages/typescript-types/extract-dom-types.ts
+++ b/packages/typescript-types/extract-dom-types.ts
@@ -87,9 +87,12 @@ const outputSourceFile = project.createSourceFile(`src/dom.ts`, undefined, {
overwrite: true,
});
outputSourceFile.addStatements([
- `// Generated from typescript@${version} ${domSourcePath}`,
- `// To regenerate, run the following command from the project root:`,
- `// npx lerna --scope=@simplewebauthn/typescript-types exec -- npm run extract-dom-types`,
+ `/**`,
+ ` * Generated from typescript@${version} ${domSourcePath}`,
+ ` * To regenerate, run the following command from the project root:`,
+ ` * npx lerna --scope=@simplewebauthn/typescript-types exec -- npm run extract-dom-types`,
+ ` */`,
+ `// BEGIN CODEGEN`,
]);
const resolvedStructures = Array.from(resolvedNodes).map((node) => node.getStructure());
outputSourceFile.addInterfaces(