@appium/types
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -33,3 +33,3 @@ import { BaseDriverCapConstraints } from './constraints'; | ||
*/ | ||
export type ConstraintToCapKind<C extends Constraint> = C['isString'] extends true ? ConstraintChoice<C, string> : C['isNumber'] extends true ? ConstraintChoice<C, number> : C['isBoolean'] extends true ? boolean : C['isArray'] extends true ? string[] : C['isObject'] extends true ? object : unknown; | ||
export type ConstraintToCapKind<C extends Constraint> = C['isString'] extends true ? ConstraintChoice<C, string> : C['isNumber'] extends true ? ConstraintChoice<C, number> : C['isBoolean'] extends true ? boolean : C['isArray'] extends true ? string[] : C['isObject'] extends true ? StringRecord : unknown; | ||
/** | ||
@@ -36,0 +36,0 @@ * Given {@linkcode Constraint} `C`, determine if it is required or optional. |
@@ -53,3 +53,3 @@ import {BaseDriverCapConstraints} from './constraints'; | ||
: C['isObject'] extends true | ||
? object | ||
? StringRecord | ||
: unknown; | ||
@@ -56,0 +56,0 @@ |
{ | ||
"name": "@appium/types", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "Various type declarations used across Appium", | ||
@@ -55,3 +55,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "d0ebbaa0c683eeba04d9d967af2d0fde76197950", | ||
"gitHead": "ed20e007548e10f89a5212b2868ed7ec47f51c2a", | ||
"typedoc": { | ||
@@ -58,0 +58,0 @@ "entryPoint": "./lib/index.ts" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
275068
6230