Skip to content

Commit 734c5e0

Browse files
Bashamegasaschanaz
andauthored
Update src/build/mdn-comments.ts
Co-authored-by: Kagami Sascha Rosylight <[email protected]>
1 parent 1848c57 commit 734c5e0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/build/mdn-comments.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ async function walkDirectory(dir: URL): Promise<URL[]> {
6767
return results;
6868
}
6969

70-
const types: Record<string, string> = {
71-
property: "properties",
72-
method: "methods",
73-
"landing-page": "ignore",
74-
interface: "interfaces",
75-
overview: "ignore",
76-
event: "events",
70+
const paths: Record<string, string[]> = {
71+
"web-api-instance-property": ["properties", "property"],
72+
"web-api-static-property": ["properties", "property"],
73+
"web-api-instance-method": ["methods", "method"],
74+
"web-api-static-method": ["methods", "method"],
75+
"web-api-interface": [],
76+
"webgl-extension": [],
77+
"webgl-extension-method": ["methods", "method"],
7778
};
7879

7980
function generateTypes(content: string): string[] | undefined {

0 commit comments

Comments
 (0)