@ark/schema
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -26,2 +26,3 @@ import { type array } from "@ark/util"; | ||
as(): this; | ||
readonly(): this; | ||
readonly branches: readonly nodeOfKind<Union.ChildKind>[]; | ||
@@ -28,0 +29,0 @@ distribute<mapOut, reduceOut = mapOut[]>(mapBranch: (branch: nodeOfKind<Union.ChildKind>, i: number, branches: array<nodeOfKind<Union.ChildKind>>) => mapOut, reduceMapped?: (mappedBranches: mapOut[]) => reduceOut): reduceOut; |
@@ -77,2 +77,5 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { | ||
} | ||
readonly() { | ||
return this; | ||
} | ||
branches = this.hasKind("union") ? this.inner.branches : [this]; | ||
@@ -79,0 +82,0 @@ distribute(mapBranch, reduceMapped) { |
{ | ||
"name": "@ark/schema", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": { |
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
334658
7493