import { Maybe } from '@typed/maybe' ; export function querySelector < A extends Element , B extends Element = A > ( cssSelector , node ) { return Maybe . of ( node . querySelector ( cssSelector ) as B ) ; } export function querySelectorAll < A extends Element , B extends Element = A > ( cssSelector , node ) { return Array . from ( node . querySelectorAll ( cssSelector ) ) ; }