pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

ts strict - getAttribute

Open tedpatrick opened this issue 3 years ago • 0 comments

Working through TS strict errors related to getAttribute.

Element.getAttribute returns string | null

All existing code ignores the potential null and assumes string.

  1. Add a util for getAttribute which both tests for hasAttribute and supports string, null
  2. Implement across pyscript

tedpatrick avatar Oct 18 '22 02:10 tedpatrick