We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NodeJS
2 parents 0dc77b3 + 59ff615 commit 3fa8d10Copy full SHA for 3fa8d10
generate-types/index.js
@@ -841,6 +841,13 @@ const printError = (diagnostic) => {
841
/** @type {ts.TypeNode} */
842
let typeNode = /** @type {any} */ (type)._typeNode;
843
if (type.aliasSymbol) {
844
+ const fullEscapedName = getFullEscapedName(type.aliasSymbol);
845
+ if (fullEscapedName.includes("NodeJS.")) {
846
+ return {
847
+ type: "primitive",
848
+ name: fullEscapedName,
849
+ };
850
+ }
851
const aliasType = checker.getDeclaredTypeOfSymbol(type.aliasSymbol);
852
if (aliasType && aliasType !== type) {
853
const typeArguments = type.aliasTypeArguments || [];
0 commit comments