···98989999export interface EnumResolverContext extends BaseContext {
100100 /**
101101- * Nodes used to build different parts of the schema.
101101+ * Nodes used to build different parts of the result.
102102 */
103103 nodes: {
104104 /**
···124124125125export interface NumberResolverContext extends BaseContext {
126126 /**
127127- * Nodes used to build different parts of the schema.
127127+ * Nodes used to build different parts of the result.
128128 */
129129 nodes: {
130130 base: (ctx: NumberResolverContext) => PipeResult;
···147147 _childResults: Array<ValibotResult>;
148148 applyModifiers: (result: ValibotResult, opts: { optional?: boolean }) => ValibotFinal;
149149 /**
150150- * Nodes used to build different parts of the schema.
150150+ * Nodes used to build different parts of the result.
151151 */
152152 nodes: {
153153 additionalProperties: (ctx: ObjectResolverContext) => Pipe | null | undefined;
···167167168168export interface StringResolverContext extends BaseContext {
169169 /**
170170- * Nodes used to build different parts of the schema.
170170+ * Nodes used to build different parts of the result.
171171 */
172172 nodes: {
173173 base: (ctx: StringResolverContext) => PipeResult;
···33import type { MaybeArray } from '@hey-api/types';
44import type ts from 'typescript';
5566-import type { MaybeBigInt, ShouldCoerceToBigInt } from '../../../plugins/shared/utils/coerce';
77-import type { GetIntegerLimit } from '../../../plugins/shared/utils/formats';
88-import type { $, DollarTsDsl, TsDsl } from '../../../ts-dsl';
99-import type { Chain } from '../shared/chain';
1010-import type { Ast, IrSchemaToAstOptions, PluginState, ZodSchemaResult } from '../shared/types';
1111-import type { ZodPlugin } from '../types';
66+import type { MaybeBigInt, ShouldCoerceToBigInt } from '../../plugins/shared/utils/coerce';
77+import type { GetIntegerLimit } from '../../plugins/shared/utils/formats';
88+import type { $, DollarTsDsl, TsDsl } from '../../ts-dsl';
99+import type { Chain } from './shared/chain';
1010+import type { Ast, PluginState, ZodSchemaResult } from './shared/types';
1111+import type { ZodPlugin } from './types';
12121313export type Resolvers = Plugin.Resolvers<{
1414 /**
···7474 ctx: ValidatorResolverContext,
7575) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
76767777-type BaseContext = DollarTsDsl &
7878- Pick<IrSchemaToAstOptions, 'plugin'> & {
7777+interface BaseContext extends DollarTsDsl {
7878+ /**
7979+ * Functions for working with chains.
8080+ */
8181+ chain: {
7982 /**
8080- * Functions for working with chains.
8383+ * The current chain.
8484+ *
8585+ * In Zod, this represents a chain of call expressions ("chains")
8686+ * being assembled to form a schema definition.
8787+ *
8888+ * Each chain can be extended, modified, or replaced to customize
8989+ * the resulting schema.
8190 */
8282- chain: {
8383- /**
8484- * The current chain.
8585- *
8686- * In Zod, this represents a chain of call expressions ("chains")
8787- * being assembled to form a schema definition.
8888- *
8989- * Each chain can be extended, modified, or replaced to customize
9090- * the resulting schema.
9191- */
9292- current: Chain;
9393- };
9494- /**
9595- * Provides access to commonly used symbols within the plugin.
9696- */
9797- symbols: {
9898- z: Symbol;
9999- };
9191+ current: Chain;
9292+ };
9393+ /** The plugin instance. */
9494+ plugin: ZodPlugin['Instance'];
9595+ /**
9696+ * Provides access to commonly used symbols within the plugin.
9797+ */
9898+ symbols: {
9999+ z: Symbol;
100100 };
101101+}
101102102103export interface EnumResolverContext extends BaseContext {
103104 /**
104104- * Nodes used to build different parts of the enum schema.
105105+ * Nodes used to build different parts of the result.
105106 */
106107 nodes: {
107108 /**
···142143143144export interface NumberResolverContext extends BaseContext {
144145 /**
145145- * Nodes used to build different parts of the number schema.
146146+ * Nodes used to build different parts of the result.
146147 */
147148 nodes: {
148149 base: (ctx: NumberResolverContext) => Chain;
···166167export interface ObjectResolverContext extends BaseContext {
167168 applyModifiers: (result: ZodSchemaResult, opts: { optional?: boolean }) => Ast;
168169 /**
169169- * Nodes used to build different parts of the object schema.
170170+ * Nodes used to build different parts of the result.
170171 */
171172 nodes: {
172173 /**
···191192192193export interface StringResolverContext extends BaseContext {
193194 /**
194194- * Nodes used to build different parts of the string schema.
195195+ * Nodes used to build different parts of the result.
195196 */
196197 nodes: {
197198 base: (ctx: StringResolverContext) => Chain;