Skip to content

Commit a394ee1

Browse files
committed
fix as suggest.
1 parent a21833a commit a394ee1

File tree

7 files changed

+4
-190
lines changed

7 files changed

+4
-190
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ To give you a sense of whether we will accept changes, you can use these heurist
103103
- `overridingTypes.json`: types that are defined in the spec file but has a better or more up-to-date definitions in the json files.
104104
- `removedTypes.json`: types that are defined in the spec file but should be removed.
105105
- `comments.json`: comment strings to be embedded in the generated .js files.
106-
- `deprecatedMessage.json`: the reason why one type is deprecated. The reason why it is a sprecate file rather than merge in comment.json is mdn/apiDescriptions.json would also possiably be deprecated.
106+
- `deprecatedMessage.json`: the reason why one type is deprecated. The reason why it is a separate file rather than merge in comment.json is mdn/apiDescriptions.json would also possibly be deprecated.

manualAnalytics/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

manualAnalytics/idlSourceAppearDeprecateText.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

manualAnalytics/mdnDeprecatedApis.ts

Lines changed: 0 additions & 106 deletions
This file was deleted.

manualAnalytics/tsconfig.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"node-fetch": "^2.6.0",
2020
"print-diff": "^0.1.1",
2121
"styleless-innertext": "^1.1.2",
22-
"ts-node": "^8.10.2",
2322
"typescript": "next",
2423
"webidl2": "^23.12.1"
2524
}

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ function emitDom() {
116116
for (const [key, value] of Object.entries(descriptions)) {
117117
const target = idl.interfaces!.interface[key] || namespaces[key];
118118
if (target) {
119-
const tmp = target.comment ?? "";
120-
const tmp2 = "\n * @deprecated " + transformVerbosity(key, value);
121-
target.comment = tmp + tmp2;
119+
const comment = target.comment ?? "";
120+
const deprecated = "\n * @deprecated " + transformVerbosity(key, value);
121+
target.comment = comment + deprecated;
122122
}
123123
}
124124
return idl;

0 commit comments

Comments
 (0)