( fns: LegacyScopedSlotsData, raw?: Record<string, Slot>, // the following are added in 2.6 hasDynamicKeys?: boolean, )
| 88 | > |
| 89 | |
| 90 | export function legacyResolveScopedSlots( |
| 91 | fns: LegacyScopedSlotsData, |
| 92 | raw?: Record<string, Slot>, |
| 93 | // the following are added in 2.6 |
| 94 | hasDynamicKeys?: boolean, |
| 95 | ): ReturnType<typeof createSlots> { |
| 96 | // v2 default slot doesn't have name |
| 97 | return createSlots( |
| 98 | raw || ({ $stable: !hasDynamicKeys } as any), |
| 99 | mapKeyToName(fns), |
| 100 | ) |
| 101 | } |
| 102 | |
| 103 | function mapKeyToName(slots: LegacyScopedSlotsData) { |
| 104 | for (let i = 0; i < slots.length; i++) { |
nothing calls this directly
no test coverage detected