@stylable/dom-test-kit
Advanced tools
Comparing version 2.1.5-alpha.1 to 2.1.5-alpha.2
import { RuntimeStylesheet, StateValue } from '@stylable/runtime'; | ||
import { CommonStylesheet } from './legacy-types'; | ||
export interface PartialElement { | ||
@@ -24,3 +25,3 @@ querySelector: Element['querySelector']; | ||
private internal; | ||
constructor(stylesheet: RuntimeStylesheet, root?: Element | undefined); | ||
constructor(stylesheet: CommonStylesheet, root?: Element | undefined); | ||
select(selector?: string, element?: PartialElement): Element | null; | ||
@@ -27,0 +28,0 @@ selectAll(selector?: string, element?: PartialElement): Element[] | null; |
{ | ||
"name": "@stylable/dom-test-kit", | ||
"version": "2.1.5-alpha.1", | ||
"version": "2.1.5-alpha.2", | ||
"description": "Stylable DOM testing utilities", | ||
@@ -32,3 +32,3 @@ "main": "./cjs/index.js", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "7b98ed2f112e0d38a407d8bb00aef01ddf4e6163" | ||
"gitHead": "6371b1f432ad027eb087364ad5656fe016b6f211" | ||
} |
@@ -9,3 +9,3 @@ import { | ||
import { RuntimeStylesheet, StateValue } from '@stylable/runtime'; | ||
import { getStylesheetMode } from './legacy-types'; | ||
import { CommonStylesheet, getStylesheetMode } from './legacy-types'; | ||
import { StylableDOMUtilLegacy } from './stylable-dom-util-legacy'; | ||
@@ -118,3 +118,3 @@ | ||
private internal: any; | ||
constructor(private stylesheet: RuntimeStylesheet, private root?: Element) { | ||
constructor(private stylesheet: CommonStylesheet, private root?: Element) { | ||
const mode = getStylesheetMode(stylesheet); | ||
@@ -130,3 +130,3 @@ | ||
} else { | ||
this.internal = new StylableDOMUtil(this.stylesheet, this.root); | ||
this.internal = new StylableDOMUtil(this.stylesheet as RuntimeStylesheet, this.root); | ||
} | ||
@@ -133,0 +133,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37475
527