astro-ghostcms/.pnpm-store/v3/files/30/726f58047dd9f1e85910f25f993...

16 lines
552 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTypeArguments = void 0;
/**
* @deprecated This is in TypeScript as of 3.7.
*/
function getTypeArguments(type, checker) {
// getTypeArguments was only added in TS3.7
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (checker.getTypeArguments) {
return checker.getTypeArguments(type);
}
return type.typeArguments ?? [];
}
exports.getTypeArguments = getTypeArguments;
//# sourceMappingURL=getTypeArguments.js.map