Files
memecoin-botV2/.pnpm-store/v10/files/02/8a93a8c3ba2c90bbda22e17becc4a511c87ae2fcc12cee6fd7f469a7d46275e323a0eb5c0849d528c8c91614678e69dea5d9408d699acfea8e16ebbd1ffae7

17 lines
525 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.specifierNameMatches = specifierNameMatches;
function specifierNameMatches(type, names) {
if (typeof names === 'string') {
names = [names];
}
const symbol = type.aliasSymbol ?? type.getSymbol();
const candidateNames = symbol
? [symbol.escapedName, type.intrinsicName]
: [type.intrinsicName];
if (names.some(item => candidateNames.includes(item))) {
return true;
}
return false;
}