mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix: include parsed .md spec into api.json (#5662)
This commit is contained in:
parent
b253ee80c0
commit
c390f3950f
@ -49,7 +49,7 @@ function serialize(documentation) {
|
|||||||
* @param {Documentation.Class} clazz
|
* @param {Documentation.Class} clazz
|
||||||
*/
|
*/
|
||||||
function serializeClass(clazz) {
|
function serializeClass(clazz) {
|
||||||
const result = { name: clazz.name };
|
const result = { name: clazz.name, spec: clazz.spec };
|
||||||
if (clazz.extends)
|
if (clazz.extends)
|
||||||
result.extends = clazz.extends;
|
result.extends = clazz.extends;
|
||||||
result.langs = clazz.langs;
|
result.langs = clazz.langs;
|
||||||
@ -88,7 +88,6 @@ function sanitize(result) {
|
|||||||
delete result.argsArray;
|
delete result.argsArray;
|
||||||
delete result.clazz;
|
delete result.clazz;
|
||||||
delete result.enclosingMethod;
|
delete result.enclosingMethod;
|
||||||
delete result.spec;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user