arktype 2.0.0-rc.22 → 2.0.0-rc.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { ArkErrors, BaseRoot, Disjoint, JsonSchema, MetaSchema, Morph, Predicate, PredicateCast, StandardSchema, UndeclaredKeyBehavior } from "@ark/schema";
1
+ import type { ArkErrors, ArkTypeStandardSchemaProps, BaseRoot, Disjoint, JsonSchema, MetaSchema, Morph, Predicate, PredicateCast, UndeclaredKeyBehavior } from "@ark/schema";
2
2
  import type { anyOrNever, array, Callable, ErrorMessage, inferred, Json, unset } from "@ark/util";
3
3
  import type { associateAttributes, associateAttributesFromSchema, brandAttributes, Default, DefaultFor, distill, inferIntersection, inferMorphOut, inferPipes, InferredMorph, Nominal, Optional, Out, To } from "../attributes.ts";
4
4
  import type { ArkAmbient } from "../config.ts";
@@ -7,7 +7,7 @@ import type { Scope } from "../scope.ts";
7
7
  import type { ArrayType } from "./array.ts";
8
8
  import type { instantiateType } from "./instantiate.ts";
9
9
  /** @ts-ignore cast variance */
10
- interface Type<out t = unknown, $ = {}> extends Callable<(data: unknown) => distill.Out<t> | ArkErrors, StandardSchema.ConstantProps> {
10
+ interface Type<out t = unknown, $ = {}> extends Callable<(data: unknown) => distill.Out<t> | ArkErrors, ArkTypeStandardSchemaProps> {
11
11
  [inferred]: t;
12
12
  t: t;
13
13
  infer: this["inferOut"];
@@ -139,8 +139,7 @@ interface Type<out t = unknown, $ = {}> extends Callable<(data: unknown) => dist
139
139
  * @example const withMorph = type({ foo: type("string.numeric.parse").default("123") }); withMorph({}) // { foo: 123 }
140
140
  */
141
141
  default<const value extends this["inferIn"], r = associateAttributes<t, Default<value>>>(value: DefaultFor<value>): instantiateType<r, $>;
142
- "~validate": StandardSchema.Validator<this["inferOut"]>;
143
- "~types": StandardSchema.Types<this["inferIn"], this["inferOut"]>;
142
+ "~standard": ArkTypeStandardSchemaProps<this["inferIn"], this["inferOut"]>;
144
143
  /** @deprecated */
145
144
  apply: Function["apply"];
146
145
  /** @deprecated */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arktype",
3
3
  "description": "TypeScript's 1:1 validator, optimized from editor to runtime",
4
- "version": "2.0.0-rc.22",
4
+ "version": "2.0.0-rc.23",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "David Blass",
@@ -34,8 +34,8 @@
34
34
  "out"
35
35
  ],
36
36
  "dependencies": {
37
- "@ark/util": "0.22.0",
38
- "@ark/schema": "0.22.0"
37
+ "@ark/util": "0.23.0",
38
+ "@ark/schema": "0.23.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"