Comparing version 2.0.0-beta.4 to 2.0.0-beta.5
@@ -1,5 +0,6 @@ | ||
import type { ErrorType, merge } from "@ark/util"; | ||
import type { array, ErrorType, merge } from "@ark/util"; | ||
import type { type } from "../ark.js"; | ||
import type { arkKeyOf, getArkKey, toArkKey } from "../keys.js"; | ||
import type { inferTypeRoot, validateTypeRoot } from "../type.js"; | ||
import type { ArrayType } from "./array.js"; | ||
import type { instantiateType } from "./instantiate.js"; | ||
@@ -9,2 +10,7 @@ import type { ValidatorType } from "./validator.js"; | ||
interface Type<out t extends object = object, $ = {}> extends ValidatorType<t, $> { | ||
readonly(): t extends array ? ArrayType<{ | ||
readonly [i in keyof t]: t[i]; | ||
}, $> : Type<{ | ||
readonly [k in keyof t]: t[k]; | ||
}, $>; | ||
keyof(): instantiateType<keyof t, $>; | ||
@@ -11,0 +17,0 @@ get<k1 extends arkKeyOf<t>, r = instantiateType<getArkKey<t, k1>, $>>(k1: k1 | type.cast<k1>): r; |
{ | ||
"name": "arktype", | ||
"description": "TypeScript's 1:1 validator, optimized from editor to runtime", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.0-beta.5", | ||
"license": "MIT", | ||
@@ -29,3 +29,3 @@ "author": { | ||
"@ark/util": "0.2.1", | ||
"@ark/schema": "0.3.1" | ||
"@ark/schema": "0.3.2" | ||
}, | ||
@@ -32,0 +32,0 @@ "publishConfig": { |
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
198254
3587
+ Added@ark/schema@0.3.2(transitive)
- Removed@ark/schema@0.3.1(transitive)
Updated@ark/schema@0.3.2