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.19 to 2.0.0-dev.20

2

out/api.d.ts

@@ -1,2 +0,2 @@

export { ArkError, ArkErrors } from "@arktype/schema";
export { ArkError, ArkErrors as ArkErrors } from "@arktype/schema";
export type { Ark, ArkConfig, Out } from "@arktype/schema";

@@ -3,0 +3,0 @@ export { ambient, ark, declare, define, match, type } from "./ark.js";

@@ -1,2 +0,2 @@

export { ArkError, ArkErrors } from "@arktype/schema";
export { ArkError, ArkErrors as ArkErrors } from "@arktype/schema";
export { ambient, ark, declare, define, match, type } from "./ark.js";

@@ -3,0 +3,0 @@ export { Module } from "./module.js";

@@ -1,2 +0,2 @@

import type { BaseRoot } from "@arktype/schema";
import type { BaseRoot, resolvableReferenceIn } from "@arktype/schema";
import { type ErrorMessage } from "@arktype/util";

@@ -18,3 +18,3 @@ import type { inferAstRoot } from "../semantic/infer.js";

export type inferString<def extends string, $, args> = inferAstRoot<parseString<def, $, args>, $, args>;
export type BaseCompletions<$, args, otherSuggestions extends string = never> = (keyof $ & string) | (keyof args & string) | StringifiablePrefixOperator | otherSuggestions;
export type BaseCompletions<$, args, otherSuggestions extends string = never> = resolvableReferenceIn<$> | (keyof args & string) | StringifiablePrefixOperator | otherSuggestions;
export declare const fullStringParse: (s: DynamicState) => BaseRoot;

@@ -21,0 +21,0 @@ type fullStringParse<s extends StaticState, $, args> = extractFinalizedResult<parseUntilFinalizer<s, $, args>>;

@@ -48,2 +48,3 @@ 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 Predicate, type Prerequisite, type PrimitiveConstraintKind, type RegexSchema, type Root, type ambient, type constrain, type constraintKindOf, type distillIn, type distillOut, type exclusivizeRangeSchema, type inferIntersection, type inferMorphOut, type inferPipes, type inferPredicate, type writeInvalidOperandMessage } from "@arktype/schema";

extends<def>(other: validateTypeRoot<def, $>): this is Type<inferTypeRoot<def>, $>;
overlaps<def>(r: validateTypeRoot<def, $>): boolean;
constrain<kind extends PrimitiveConstraintKind, const def extends NodeSchema<kind>>(kind: conform<kind, constraintKindOf<this["inferIn"]>>, def: def): Type<constrain<t, kind, def>, $>;

@@ -69,5 +70,5 @@ satisfying<predicate extends Predicate<distillIn<t>>>(predicate: predicate): Type<t extends MorphAst ? (In: inferPredicate<this["tIn"], predicate>) => Out<this["tOut"]> : inferPredicate<t, predicate>, $>;

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

@@ -74,0 +75,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.19",
"version": "2.0.0-dev.20",
"license": "MIT",

@@ -27,4 +27,4 @@ "author": {

"dependencies": {
"@arktype/schema": "0.1.11",
"@arktype/util": "0.0.47"
"@arktype/util": "0.0.48",
"@arktype/schema": "0.1.12"
},

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