MCPcopy Index your code
hub / github.com/refined-github/refined-github / isFeatureDisabled

Function isFeatureDisabled

source/options-storage.ts:17–21  ·  view source on GitHub ↗
(options: RghOptions, id: string)

Source from the content-addressed store, hash-verified

15}, Object.fromEntries(importedFeatures.map(id => [`feature:${id}`, id !== 'extensible-nav'])));
16
17export function isFeatureDisabled(options: RghOptions, id: string): boolean {
18 // Must check if it's specifically `false`: It could be undefined if not yet in the readme or if misread from the entry point #6606
19 // eslint-disable-next-line @typescript-eslint/no-unnecessary-boolean-literal-compare, unicorn/no-unnecessary-boolean-comparison
20 return options[`feature:${id}`] === false;
21}
22
23const migrations = [
24 (options: RghOptions): void => {

Callers 2

addFunction · 0.85
getDisabledReasonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected