MCPcopy Index your code
hub / github.com/shipshapecode/shepherd / getConfigOption

Function getConfigOption

shepherd.js/src/components/shepherd-button.ts:6–11  ·  view source on GitHub ↗
(option: unknown, step: Step)

Source from the content-addressed store, hash-verified

4import './shepherd-button.css';
5
6function getConfigOption(option: unknown, step: Step): unknown {
7 if (isFunction(option)) {
8 return option.call(step);
9 }
10 return option;
11}
12
13export function createShepherdButton(
14 config: StepOptionsButton,

Callers 1

createShepherdButtonFunction · 0.85

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected