Comparing version 2.0.0-dev.19 to 2.0.0-dev.20
@@ -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": { |
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
137235
2312
+ Added@arktype/schema@0.1.12(transitive)
+ Added@arktype/util@0.0.48(transitive)
- Removed@arktype/schema@0.1.11(transitive)
- Removed@arktype/util@0.0.47(transitive)
Updated@arktype/schema@0.1.12
Updated@arktype/util@0.0.48