import {expectType} from 'tsd'; import {$, $$, elementExists, lastElement, expectElement} from './index.js'; // `select-dom` defaults to HTMLElement where possible because it's the most common use case, even if technically this should not be HTMLElement. /** * SELECT */ expectType($('.wow')); expectType($('a.wow')); expectType($('base')); expectType($('g')); /** * EXPECT */ expectType(expectElement('.wow')); expectType(expectElement('a.wow')); expectType(expectElement('base')); expectType(expectElement('g')); /** * LAST */ expectType(lastElement('.wow')); expectType(lastElement('a.wow')); expectType(lastElement('base')); expectType(lastElement('g')); /** * EXISTS */ expectType(elementExists('.wow')); expectType(elementExists('base')); expectType(elementExists('g')); /** * ALL */ expectType($$('.wow')); expectType($$('base')); expectType($$('g')); expectType($$('a.wow'));