Urara-Blog/node_modules/.pnpm-store/v3/files/27/84e9e0d19bd0f00fb874429c906e35ea148f162a9989d81b647ec6f8e0d6f121b28162396ebec350d29faf448612cd9dc33cdd87a85fc1ab8701ab527f52e4
2022-08-14 01:14:53 +08:00

13 lines
No EOL
469 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTypeArguments = void 0;
function getTypeArguments(type, checker) {
var _a;
// getTypeArguments was only added in TS3.7
if (checker.getTypeArguments) {
return checker.getTypeArguments(type);
}
return (_a = type.typeArguments) !== null && _a !== void 0 ? _a : [];
}
exports.getTypeArguments = getTypeArguments;
//# sourceMappingURL=getTypeArguments.js.map