diff --git a/util/shared/typescript.mjs b/util/shared/typescript.mjs index 2f61b6fd..b3dbfc8b 100644 --- a/util/shared/typescript.mjs +++ b/util/shared/typescript.mjs @@ -390,7 +390,8 @@ function getSchemaShape(moduleJson = {}, json = {}, schemas = {}, name = '', opt } else { // grab the type for the non-array schema, so we get the link for free - let type = getSchemaType(module, json.items, schemas, {code: options.code, link: options.link, title: options.title}) + // added asPath and baseUrl to generate proper URL + let type = getSchemaType(module, json.items, schemas, options) // insert the [] into the type if (options.link) { type = type.replace(/\[(`?)(.*)(`?)\]/, '\[$1$2\[\]$3\]')