arktype 2.0.0-dev.23 → 2.0.0-dev.24

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 BaseMeta, type BaseRoot, type Morph, type Out, type Predicate, type distillConstrainableIn, type distillConstrainableOut, type inferIntersection, type inferMorphOut, type inferPredicate } from "@arktype/schema";
1
+ import { type BaseMeta, type BaseRoot, type Morph, type Out, type Predicate, type distillConstrainableIn, type distillOut, type inferIntersection, type inferMorphOut, type inferPredicate } from "@arktype/schema";
2
2
  import { type Constructor, type Domain, type ErrorMessage, type array, type conform, type show } from "@arktype/util";
3
3
  import type { ParseContext } from "../scope.js";
4
4
  import type { inferDefinition, validateDefinition } from "./definition.js";
@@ -103,7 +103,7 @@ export type validatePostfixExpression<def extends PostfixExpression, $, args> =
103
103
  export type validateInfixExpression<def extends InfixExpression, $, args> = def["length"] extends 2 ? readonly [def[0], writeMissingRightOperandMessage<def[1]>] : readonly [
104
104
  validateDefinition<def[0], $, args>,
105
105
  def[1],
106
- def[1] extends "|" ? validateDefinition<def[2], $, args> : def[1] extends "&" ? validateDefinition<def[2], $, args> : def[1] extends ":" ? Predicate<distillConstrainableIn<inferDefinition<def[0], $, args>>> : def[1] extends "=>" ? Morph<distillConstrainableOut<inferDefinition<def[0], $, args>>, unknown> : def[1] extends "@" ? BaseMeta | string : validateDefinition<def[2], $, args>
106
+ def[1] extends "|" ? validateDefinition<def[2], $, args> : def[1] extends "&" ? validateDefinition<def[2], $, args> : def[1] extends ":" ? Predicate<distillOut<inferDefinition<def[0], $, args>>> : def[1] extends "=>" ? Morph<distillOut<inferDefinition<def[0], $, args>>, unknown> : def[1] extends "@" ? BaseMeta | string : validateDefinition<def[2], $, args>
107
107
  ];
108
108
  export type UnparsedTupleExpressionInput = {
109
109
  instanceof: Constructor;
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-dev.23",
4
+ "version": "2.0.0-dev.24",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "David Blass",
@@ -13,10 +13,10 @@
13
13
  "url": "https://github.com/arktypeio/arktype.git"
14
14
  },
15
15
  "type": "module",
16
- "main": "./out/api.js",
17
- "types": "./out/api.d.ts",
16
+ "main": "./out/index.js",
17
+ "types": "./out/index.d.ts",
18
18
  "exports": {
19
- ".": "./out/api.js",
19
+ ".": "./out/index.js",
20
20
  "./config": "./out/config.js",
21
21
  "./internal/*": "./out/*"
22
22
  },
@@ -24,8 +24,8 @@
24
24
  "out"
25
25
  ],
26
26
  "dependencies": {
27
- "@arktype/util": "0.0.48",
28
- "@arktype/schema": "0.1.15"
27
+ "@arktype/util": "0.0.49",
28
+ "@arktype/schema": "0.1.16"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsx ../repo/build.ts",
File without changes
File without changes