( input0: FuncishClassNameInput, // added to string first input1: FuncishClassNameInput, optionName: string, )
| 76 | invalid values before the formal refinement pass. |
| 77 | */ |
| 78 | export 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 | |
| 103 | export function mergeContentInjectors( |
| 104 | contentGenerator0: ContentGenerator<any>, // fallback |
nothing calls this directly
no test coverage detected
searching dependent graphs…