(
node:
| FormKitSchemaNode
| FormKitSchemaAttributesCondition
| FormKitSchemaAttributes
)
| 285 | * @param node - An object to check. |
| 286 | */ |
| 287 | export function isConditional( |
| 288 | node: |
| 289 | | FormKitSchemaNode |
| 290 | | FormKitSchemaAttributesCondition |
| 291 | | FormKitSchemaAttributes |
| 292 | ): node is FormKitSchemaNode | FormKitSchemaAttributesCondition { |
| 293 | if (!node || typeof node === 'string') return false |
| 294 | return has(node, 'if') && has(node, 'then') |
| 295 | } |
| 296 | |
| 297 | /** |
| 298 | * Determines if the node is syntactic sugar or not. |
no test coverage detected