Skip to content

Commit 7b92b7d

Browse files
committed
chore: better naming
1 parent 61d9bfe commit 7b92b7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { getInterfaceElementMergeData } from "./build/webref/elements.js";
1313
import { getInterfaceToEventMap } from "./build/webref/events.js";
1414
import { getWebidls } from "./build/webref/idl.js";
1515
import jsonc from "jsonc-parser";
16-
import { generateDescription } from "./build/mdn-comments.js";
16+
import { generateDescriptions } from "./build/mdn-comments.js";
1717

1818
function mergeNamesakes(filtered: Browser.WebIdl) {
1919
const targets = [
@@ -95,7 +95,7 @@ async function emitDom() {
9595
const addedItems = await readInputJSON("addedTypes.jsonc");
9696
const comments = await readInputJSON("comments.json");
9797
const deprecatedInfo = await readInputJSON("deprecatedMessage.json");
98-
const documentationFromMDN = generateDescription();
98+
const documentationFromMDN = generateDescriptions();
9999
const removedItems = await readInputJSON("removedTypes.jsonc");
100100

101101
async function readInputJSON(filename: string) {

src/build/mdn-comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function getIndexMdContents(folders: URL[]): { [key: string]: string } {
8888
return results;
8989
}
9090

91-
export function generateDescription(): Record<string, string> {
91+
export function generateDescriptions(): Record<string, string> {
9292
const stats = fs.statSync(basePath);
9393
if (!stats.isDirectory()) {
9494
throw new Error(

0 commit comments

Comments
 (0)