MCPcopy
hub / github.com/refined-github/refined-github / getNewFeatureName

Function getNewFeatureName

source/feature-data.ts:12–16  ·  view source on GitHub ↗
(possibleFeatureName: string)

Source from the content-addressed store, hash-verified

10export {renamedFeatures};
11
12export function getNewFeatureName(possibleFeatureName: string): FeatureId | undefined {
13 // @ts-expect-error Useless "no index type" error as usual
14 const newFeatureName = renamedFeatures[possibleFeatureName] as FeatureId ?? possibleFeatureName;
15 return importedFeatures.includes(newFeatureName) ? newFeatureName : undefined;
16}
17
18export function getOldFeatureNames(featureName: string): string[] {
19 const oldNames: string[] = [];

Callers 2

linkifyFeatureFunction · 0.85

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected