Skip to content

Commit 1e4f43f

Browse files
committed
Fix missed.
1 parent 747ce7c commit 1e4f43f

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

packages/schema/src/_api/schemed.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ type ShapeFromClass<
7777

7878
export const fromFields = Symbol()
7979

80-
export function Schemed<
81-
Self extends S.Schema<any, any, any, any, S.AnyError, any, any>
82-
>(self: Self): Schemed<Self> {
80+
export function Schemed<Self extends S.Schema<any, any, any, any, any, any, any>>(
81+
self: Self
82+
): Schemed<Self> {
8383
const of_ = Constructor.for(self)["|>"](unsafe)
8484
// @ts-expect-error
8585
return class {

packages/schema/src/_schema/schema.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type * as fc from "fast-check"
66

77
import type * as Th from "../These"
88
import type { Annotation } from "./annotation"
9-
import type { AnyError, CompositionE, NamedE, NextE, PrevE, RefinementE } from "./error"
9+
import type { any, CompositionE, NamedE, NextE, PrevE, RefinementE } from "./error"
1010

1111
export const SchemaSym = Symbol()
1212
export type SchemaSym = typeof SchemaSym
@@ -85,15 +85,7 @@ export abstract class Schema<
8585
export type SchemaAny = Schema<any, any, any, any, any, any, any>
8686
export type SchemaUPI = Schema<unknown, any, any, any, any, any, any>
8787

88-
export type Standard<A, Enc = unknown> = Schema<
89-
unknown,
90-
AnyError,
91-
A,
92-
A,
93-
AnyError,
94-
Enc,
95-
{}
96-
>
88+
export type Standard<A, Enc = unknown> = Schema<unknown, any, A, A, any, Enc, {}>
9789

9890
export interface ApiSelfType<AS = unknown> {
9991
_AS: AS
@@ -109,10 +101,10 @@ export type SchemaContinuationSymbol = typeof SchemaContinuationSymbol
109101
export interface HasContinuation {
110102
readonly [SchemaContinuationSymbol]: Schema<
111103
unknown,
112-
AnyError,
104+
any,
113105
unknown,
114106
unknown,
115-
AnyError,
107+
any,
116108
unknown,
117109
unknown
118110
>

0 commit comments

Comments
 (0)