summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types/extract-dom-types.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-10-25 21:14:49 -0700
committerMatthew Miller <matthew@millerti.me>2023-10-25 21:14:49 -0700
commit86dc1ea62aecee16f0da2ff979f5f3699ff5f226 (patch)
tree556b49ab72e06932f98305dae21fca793a936591 /packages/typescript-types/extract-dom-types.ts
parent980aa54032ac58001ce3162f1974be5461b8ac79 (diff)
Update codegen intro
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(