Comparing version 2.0.0-dev.22 to 2.0.0-dev.23
@@ -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": { |
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
138234
2325
+ Added@arktype/schema@0.1.15(transitive)
- Removed@arktype/schema@0.1.14(transitive)
Updated@arktype/schema@0.1.15