UNPKG

@open-wc/testing-helpers

Version:
21 lines 1.08 kB
/** * Setups an element synchronously from the provided string template and puts it in the DOM. * Allows to specify properties via an object or a function taking the element as an argument. * * @template {Element} T - Is an element or a node * @param {string} template * @param {import('./fixture-no-side-effect.js').FixtureOptions} [options={}] * @returns {T} */ export function stringFixtureSync<T extends Element>(template: string, options?: import('./fixture-no-side-effect.js').FixtureOptions): T; /** * Setups an element asynchronously from the provided string template and puts it in the DOM. * Allows to specify properties via an object or a function taking the element as an argument. * * @template {Element} T - Is an element or a node * @param {string} template * @param {import('./fixture-no-side-effect.js').FixtureOptions} [options] * @returns {Promise<T>} */ export function stringFixture<T extends Element>(template: string, options?: import('./fixture-no-side-effect.js').FixtureOptions): Promise<T>; //# sourceMappingURL=stringFixture.d.ts.map