Comparing version 2.0.0-rc.29 to 2.0.0-rc.30
@@ -61,2 +61,3 @@ import { Hkt, type Json, type Key, type omit, type pick, type show } from "@ark/util"; | ||
body: Record<this[0], this[1]>; | ||
description: string; | ||
} | ||
@@ -63,0 +64,0 @@ declare const Record: import("@ark/schema").GenericRoot<readonly [["K", Key], ["V", unknown]], RecordHkt>; |
@@ -35,2 +35,3 @@ import { genericNode, intrinsic, node } from "@ark/schema"; | ||
class RecordHkt extends Hkt { | ||
description = "a generic type that instantiates an object from a single index signature and corresponding value type"; | ||
} | ||
@@ -37,0 +38,0 @@ const Record = genericNode(["K", intrinsic.key], "V")(args => ({ |
@@ -82,3 +82,3 @@ import { BaseScope, type AliasDefEntry, type ArkScopeConfig, type BaseNode, type BaseParseContext, type BaseParseContextInput, type BaseParseOptions, type BaseRoot, type GenericAst, type GenericParamAst, type GenericParamDef, type NodeKind, type NodeSchema, type PreparsedNodeResolution, type PrivateDeclaration, type RootKind, type RootSchema, type arkKind, type exportedNameOf, type nodeOfKind, type reducibleKindOf, type toInternalScope, type writeDuplicateAliasError } from "@ark/schema"; | ||
}; | ||
define: (def: unknown) => unknown; | ||
define<def>(def: def): def; | ||
static scope: ScopeParser; | ||
@@ -85,0 +85,0 @@ static module: ModuleParser; |
@@ -80,3 +80,5 @@ import { $ark, BaseScope, hasArkKind, parseGeneric } from "@ark/schema"; | ||
}); | ||
define = ((def) => def).bind(this); | ||
define(def) { | ||
return def; | ||
} | ||
static scope = ((def, config = {}) => new InternalScope(def, config)); | ||
@@ -83,0 +85,0 @@ static module = ((def, config = {}) => this.scope(def, config).export()); |
@@ -36,3 +36,3 @@ import { ArkErrors, BaseRoot, GenericRoot } from "@ark/schema"; | ||
const params = $.parseGenericParams(paramString, {}); | ||
return new GenericRoot(params, args[1], $, $); | ||
return new GenericRoot(params, args[1], $, $, null); | ||
} | ||
@@ -39,0 +39,0 @@ // otherwise, treat as a tuple expression. technically, this also allows |
{ | ||
"name": "arktype", | ||
"description": "TypeScript's 1:1 validator, optimized from editor to runtime", | ||
"version": "2.0.0-rc.29", | ||
"version": "2.0.0-rc.30", | ||
"license": "MIT", | ||
@@ -37,4 +37,4 @@ "author": { | ||
"dependencies": { | ||
"@ark/util": "0.29.0", | ||
"@ark/schema": "0.29.0" | ||
"@ark/util": "0.30.0", | ||
"@ark/schema": "0.30.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "publishConfig": { |
223419
4272
+ Added@ark/schema@0.30.0(transitive)
+ Added@ark/util@0.30.0(transitive)
- Removed@ark/schema@0.29.0(transitive)
- Removed@ark/util@0.29.0(transitive)
Updated@ark/schema@0.30.0
Updated@ark/util@0.30.0