Skip to content

Commit

Permalink
Fix merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeris committed Jan 24, 2024
1 parent e195488 commit 0676aff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion library/src/schemas/recursive/recursive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { BaseSchema, Input, Output } from '../../types/index.ts';
/**
* Recursive schema type.
*/
export type RecursiveSchema<
export interface RecursiveSchema<
TGetter extends () => BaseSchema,
TOutput = Output<ReturnType<TGetter>>
> extends BaseSchema<Input<ReturnType<TGetter>>, TOutput> {
Expand All @@ -15,6 +15,7 @@ export type RecursiveSchema<
* The schema getter.
*/
getter: TGetter;
}

/**
* Creates a recursive schema.
Expand Down
3 changes: 2 additions & 1 deletion library/src/schemas/recursive/recursiveAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
/**
* Recursive schema async type.
*/
export type RecursiveSchemaAsync<
export interface RecursiveSchemaAsync<
TGetter extends () => BaseSchema | BaseSchemaAsync,
TOutput = Output<ReturnType<TGetter>>
> extends BaseSchemaAsync<Input<ReturnType<TGetter>>, TOutput> {
Expand All @@ -20,6 +20,7 @@ export type RecursiveSchemaAsync<
* The schema getter.
*/
getter: TGetter;
}

/**
* Creates an async recursive schema.
Expand Down

0 comments on commit 0676aff

Please sign in to comment.