docs-util: fixes following packages reorg (#9326)

- Typescript config aren't picked up properly anymore since they're moved to `_tsconfig.base.json` in the root. So, we now read the config from the config file.
- Update Typescript version in the `utils` monorepo to match that of the root monorepo
This commit is contained in:
Shahed Nasser
2024-09-26 20:22:08 +03:00
committed by GitHub
parent 229da19029
commit bd4d2fd554
15 changed files with 107 additions and 31 deletions

View File

@@ -1356,7 +1356,9 @@ class OasKindGenerator extends FunctionKindGenerator {
name: title,
}),
}
case "intrinsicName" in itemType && itemType.intrinsicName === "boolean":
case ("intrinsicName" in itemType &&
itemType.intrinsicName === "boolean") ||
itemType.flags === ts.TypeFlags.BooleanLiteral:
return {
type: "boolean",
title: title || typeAsString,