MCPcopy
hub / github.com/fullcalendar/fullcalendar / joinFuncishClassNames

Function joinFuncishClassNames

packages/preact/src/options-manip.ts:78–101  ·  view source on GitHub ↗
(
  input0: FuncishClassNameInput, // added to string first
  input1: FuncishClassNameInput,
  optionName: string,
)

Source from the content-addressed store, hash-verified

76invalid values before the formal refinement pass.
77*/
78export function joinFuncishClassNames(
79 input0: FuncishClassNameInput, // added to string first
80 input1: FuncishClassNameInput,
81 optionName: string,
82): FuncishClassNameInput {
83 const isFunc0 = typeof input0 === 'function'
84 const isFunc1 = typeof input1 === 'function'
85
86 if (isFunc0 || isFunc1) {
87 const combinedFunc = (info: any) => {
88 return joinClassNames(
89 refineClassName(isFunc0 ? input0(info) : input0, optionName),
90 refineClassName(isFunc1 ? input1(info) : input1, optionName),
91 )
92 }
93 (combinedFunc as any).parts = [input0, input1] // see CalendarDataManager::processRawCalendarOptions
94 return combinedFunc
95 }
96
97 return joinClassNames(
98 refineClassName(input0 as ClassNameInput, optionName),
99 refineClassName(input1 as ClassNameInput, optionName),
100 )
101}
102
103export function mergeContentInjectors(
104 contentGenerator0: ContentGenerator<any>, // fallback

Callers

nothing calls this directly

Calls 2

joinClassNamesFunction · 0.90
refineClassNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…