arktype 2.0.0-rc.11 → 2.0.0-rc.13

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.
Files changed (50) hide show
  1. package/out/keywords/constructors/Date.d.ts +12 -12
  2. package/out/keywords/inference.d.ts +42 -89
  3. package/out/keywords/inference.js +1 -1
  4. package/out/keywords/number/number.d.ts +16 -12
  5. package/out/keywords/string/alpha.d.ts +2 -2
  6. package/out/keywords/string/alphanumeric.d.ts +2 -2
  7. package/out/keywords/string/brands.d.ts +17 -0
  8. package/out/keywords/string/capitalize.d.ts +2 -2
  9. package/out/keywords/string/creditCard.d.ts +2 -2
  10. package/out/keywords/string/date.d.ts +4 -4
  11. package/out/keywords/string/digits.d.ts +2 -2
  12. package/out/keywords/string/email.d.ts +2 -2
  13. package/out/keywords/string/integer.d.ts +2 -2
  14. package/out/keywords/string/ip.d.ts +4 -4
  15. package/out/keywords/string/json.d.ts +2 -2
  16. package/out/keywords/string/lower.d.ts +2 -2
  17. package/out/keywords/string/normalize.d.ts +5 -5
  18. package/out/keywords/string/numeric.d.ts +2 -2
  19. package/out/keywords/string/semver.d.ts +2 -2
  20. package/out/keywords/string/string.d.ts +14 -13
  21. package/out/keywords/string/trim.d.ts +2 -2
  22. package/out/keywords/string/upper.d.ts +2 -2
  23. package/out/keywords/string/url.d.ts +2 -2
  24. package/out/keywords/string/uuid.d.ts +10 -10
  25. package/out/methods/base.d.ts +24 -21
  26. package/out/methods/instantiate.d.ts +3 -3
  27. package/out/methods/morph.d.ts +2 -6
  28. package/out/methods/number.d.ts +2 -2
  29. package/out/methods/object.d.ts +8 -11
  30. package/out/methods/string.d.ts +2 -2
  31. package/out/parser/ast/default.d.ts +2 -2
  32. package/out/parser/ast/infer.d.ts +5 -6
  33. package/out/parser/ast/validate.d.ts +5 -5
  34. package/out/parser/ast/validate.js +1 -1
  35. package/out/parser/objectLiteral.d.ts +2 -2
  36. package/out/parser/reduce/dynamic.d.ts +1 -2
  37. package/out/parser/shift/operand/unenclosed.d.ts +5 -1
  38. package/out/parser/shift/operand/unenclosed.js +5 -4
  39. package/out/parser/shift/operator/brand.d.ts +6 -0
  40. package/out/parser/shift/operator/brand.js +5 -0
  41. package/out/parser/shift/operator/default.js +4 -1
  42. package/out/parser/shift/operator/operator.d.ts +2 -1
  43. package/out/parser/shift/operator/operator.js +4 -2
  44. package/out/parser/shift/scanner.d.ts +3 -2
  45. package/out/parser/shift/scanner.js +1 -0
  46. package/out/parser/tuple.d.ts +6 -5
  47. package/out/type.d.ts +2 -2
  48. package/package.json +3 -3
  49. package/out/methods/validator.d.ts +0 -11
  50. /package/out/{methods/validator.js → keywords/string/brands.js} +0 -0
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.11",
4
+ "version": "2.0.0-rc.13",
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.13.0",
38
- "@ark/schema": "0.13.0"
37
+ "@ark/util": "0.15.0",
38
+ "@ark/schema": "0.15.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -1,11 +0,0 @@
1
- import type { Predicate, PredicateCast } from "@ark/schema";
2
- import type { applyConstraintSchema } from "../keywords/inference.ts";
3
- import type { BaseType } from "./base.ts";
4
- import type { instantiateType } from "./instantiate.ts";
5
- /** @ts-ignore cast variance */
6
- interface Type<out t = unknown, $ = {}> extends BaseType<t, $> {
7
- narrow<narrowed extends this["infer"] = never>(predicate: Predicate<this["infer"]> | PredicateCast<this["infer"], narrowed>): instantiateType<[
8
- narrowed
9
- ] extends [never] ? applyConstraintSchema<t, "predicate", Predicate> : narrowed, $>;
10
- }
11
- export type { Type as ValidatorType };