(extensions: FormKitSectionsSchema)
| 284 | section: FormKitSchemaExtendableSection |
| 285 | ): FormKitSchemaExtendableSection { |
| 286 | const extendable = (extensions: FormKitSectionsSchema) => { |
| 287 | const node = section(extensions) |
| 288 | const attributes = typeof attrs === 'function' ? attrs() : attrs |
| 289 | if (!isObject(attributes)) return node |
| 290 | if (isSlotCondition(node) && isDOM(node.else)) { |
| 291 | node.else.attrs = { ...node.else.attrs, ...attributes } |
| 292 | } else if (isDOM(node)) { |
| 293 | node.attrs = { ...node.attrs, ...attributes } |
| 294 | } |
| 295 | return node |
| 296 | } |
| 297 | extendable._s = section._s |
| 298 | return extendable |
| 299 | } |
nothing calls this directly
no test coverage detected