Skip to content

Commit

Permalink
Fix missed.
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Jun 6, 2021
1 parent 747ce7c commit a56baa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
6 changes: 3 additions & 3 deletions packages/schema/src/_api/schemed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ type ShapeFromClass<

export const fromFields = Symbol()

export function Schemed<
Self extends S.Schema<any, any, any, any, S.AnyError, any, any>
>(self: Self): Schemed<Self> {
export function Schemed<Self extends S.Schema<any, any, any, any, any, any, any>>(
self: Self
): Schemed<Self> {
const of_ = Constructor.for(self)["|>"](unsafe)
// @ts-expect-error
return class {
Expand Down
16 changes: 4 additions & 12 deletions packages/schema/src/_schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type * as fc from "fast-check"

import type * as Th from "../These"
import type { Annotation } from "./annotation"
import type { AnyError, CompositionE, NamedE, NextE, PrevE, RefinementE } from "./error"
import type { CompositionE, NamedE, NextE, PrevE, RefinementE } from "./error"

export const SchemaSym = Symbol()
export type SchemaSym = typeof SchemaSym
Expand Down Expand Up @@ -85,15 +85,7 @@ export abstract class Schema<
export type SchemaAny = Schema<any, any, any, any, any, any, any>
export type SchemaUPI = Schema<unknown, any, any, any, any, any, any>

export type Standard<A, Enc = unknown> = Schema<
unknown,
AnyError,
A,
A,
AnyError,
Enc,
{}
>
export type Standard<A, Enc = unknown> = Schema<unknown, any, A, A, any, Enc, {}>

export interface ApiSelfType<AS = unknown> {
_AS: AS
Expand All @@ -109,10 +101,10 @@ export type SchemaContinuationSymbol = typeof SchemaContinuationSymbol
export interface HasContinuation {
readonly [SchemaContinuationSymbol]: Schema<
unknown,
AnyError,
any,
unknown,
unknown,
AnyError,
any,
unknown,
unknown
>
Expand Down

0 comments on commit a56baa3

Please sign in to comment.