summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types/extract-dom-types.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-10-25 21:40:13 -0700
committerGitHub <noreply@github.com>2023-10-25 21:40:13 -0700
commit499aec93a57d845c2c5c5f9523a16167ee31d8e4 (patch)
tree1de47875b1e8f2773d4cffff6950f77c2142990a /packages/typescript-types/extract-dom-types.ts
parent48dffd2e55b2dd5a628bbaf652b118a9bb939144 (diff)
parent02a0f9adbf7bc7b8b9ebc6d9cb4dcb07a2899060 (diff)
Merge pull request #466 from MasterKale/fix/460-track-browser-dom-ts
fix/460-track-browser-dom-ts
Diffstat (limited to 'packages/typescript-types/extract-dom-types.ts')
-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(