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-dev.22 to 2.0.0-dev.23

2

out/api.d.ts

@@ -6,2 +6,2 @@ export { ArkError, ArkErrors as ArkErrors } from "@arktype/schema";

export { scope, type Scope, type inferScope, type validateScope } from "./scope.js";
export { Type, type inferTypeRoot, type validateTypeRoot } from "./type.js";
export { Type, type AnyType, type inferTypeRoot, type validateTypeRoot } from "./type.js";
import { type Ark, type ArkErrors, type inferred } from "@arktype/schema";
import type { CastableBase } from "@arktype/util";
import type { Generic } from "./generic.js";

@@ -6,3 +7,3 @@ import type { MatchParser } from "./match.js";

import { type Scope } from "./scope.js";
import type { DeclarationParser, DefinitionParser, TypeParser } from "./type.js";
import type { DeclarationParser, DefinitionParser, Type, TypeParser } from "./type.js";
type TsGenericsExports<$ = Ark> = {

@@ -25,2 +26,8 @@ Record: Generic<[

type errors = ArkErrors;
interface of<t, $ = {}> extends Type<t, $> {
}
interface infer<t extends Type<object>> extends CastableBase<t["infer"]> {
}
interface inferIn<t extends Type<object>> extends CastableBase<t["inferIn"]> {
}
}

@@ -27,0 +34,0 @@ export declare const match: MatchParser<{}>;

@@ -72,2 +72,5 @@ import { ArkErrors, BaseRoot, type BaseMeta, type ConstraintKind, type Disjoint, type DivisorSchema, type ExactLengthSchema, type ExclusiveDateRangeSchema, type ExclusiveNumericRangeSchema, type InclusiveDateRangeSchema, type InclusiveNumericRangeSchema, type InnerRoot, type Morph, type MorphAst, type NodeSchema, type Out, type PatternSchema, type Predicate, type Prerequisite, type PrimitiveConstraintKind, type Root, type constrain, type constraintKindOf, type distillIn, type distillOut, type exclusivizeRangeSchema, type inferIntersection, type inferMorphOut, type inferPipes, type inferPredicate, type writeInvalidOperandMessage } from "@arktype/schema";

export type TypeConstructor<t = unknown, $ = {}> = new (def: unknown, $: Scope<$>) => Type<t, $>;
export type AnyType<
/** @ts-expect-error allow instantiation assignment to the base type */
out t = unknown, $ = any> = Type<t, $>;
export declare const Type: TypeConstructor;

@@ -74,0 +77,0 @@ export type DefinitionParser<$> = <def>(def: validateTypeRoot<def, $>) => def;

{
"name": "arktype",
"description": "TypeScript's 1:1 validator, optimized from editor to runtime",
"version": "2.0.0-dev.22",
"version": "2.0.0-dev.23",
"license": "MIT",

@@ -28,3 +28,3 @@ "author": {

"@arktype/util": "0.0.48",
"@arktype/schema": "0.1.14"
"@arktype/schema": "0.1.15"
},

@@ -31,0 +31,0 @@ "scripts": {

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