(el: DOMNode | null)
| 11 | } |
| 12 | |
| 13 | const findCheckbox = (el: DOMNode | null): HTMLInputElement | null => { |
| 14 | if (!el) return null |
| 15 | |
| 16 | if (el.nodeName === 'INPUT' && (el as HTMLInputElement).type === 'checkbox') { |
| 17 | return el as HTMLInputElement |
| 18 | } |
| 19 | |
| 20 | const { firstChild } = el |
| 21 | if (!firstChild) return null |
| 22 | return findCheckbox(firstChild) |
| 23 | } |
| 24 | |
| 25 | export const withTaskListHTMLDeserializerTransform: HTMLDeserializerWithTransform< |
| 26 | TaskListHTMLDeserializerOptions |
no outgoing calls
no test coverage detected
searching dependent graphs…