Socket
Socket
Sign inDemoInstall

arktype

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arktype - npm Package Compare versions

Comparing version 2.0.0-beta.4 to 2.0.0-beta.5

8

out/subtypes/object.d.ts

@@ -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;

4

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc