@applitools/types
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -6,2 +6,7 @@ # Changelog | ||
## 1.0.14 - 2021/9/15 | ||
- add `never` as default type argument value to `Selector` type to use it as stand alone type | ||
- make `transformSelector` optional same as other transformers | ||
## 1.0.13 - 2021/9/9 | ||
@@ -8,0 +13,0 @@ |
{ | ||
"name": "@applitools/types", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"keywords": [ | ||
@@ -51,3 +51,3 @@ "applitools", | ||
"devDependencies": { | ||
"@applitools/sdk-release-kit": "0.13.2", | ||
"@applitools/sdk-release-kit": "0.13.3", | ||
"@types/node": "^14.14.7", | ||
@@ -54,0 +54,0 @@ "@typescript-eslint/eslint-plugin": "^4.7.0", |
@@ -21,3 +21,3 @@ /// <reference types="node" /> | ||
}; | ||
export declare type Selector<TSelector> = TSelector | string | { | ||
export declare type Selector<TSelector = never> = TSelector | string | { | ||
selector: TSelector | string; | ||
@@ -33,5 +33,5 @@ type?: string; | ||
isSelector(selector: any): selector is TSelector; | ||
transformDriver?(driver: TDriver): TDriver; | ||
transformElement?(element: TElement): TElement; | ||
transformSelector(selector: TSelector | Selector<TSelector>): TSelector; | ||
transformDriver?(driver: any): TDriver; | ||
transformElement?(element: any): TElement; | ||
transformSelector?(selector: Selector<TSelector>): TSelector; | ||
extractContext?(element: TDriver | TContext): TContext; | ||
@@ -38,0 +38,0 @@ extractSelector?(element: TElement): TSelector; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47665