diff --git a/src/modifiers/minArrayLength.ts b/src/modifiers/minArrayLength.ts index af9150f..b1c4e53 100644 --- a/src/modifiers/minArrayLength.ts +++ b/src/modifiers/minArrayLength.ts @@ -1,6 +1,6 @@ import { refine } from '../refine'; -import type { TupleOf } from '../types'; +import type { TupleOf } from '@typeofweb/utils'; export const minArrayLength = (minLength: L) => refine((value: readonly unknown[], t) => { diff --git a/src/refine.ts b/src/refine.ts index 9f1cda0..097631b 100644 --- a/src/refine.ts +++ b/src/refine.ts @@ -1,7 +1,8 @@ import { unionToPrint } from './stringify'; import { left, right, nextValid, nextNotValid } from './utils/either'; -import type { Either, If, Next, Pretty, SomeSchema } from './types'; +import type { Either, Next, SomeSchema } from './types'; +import type { If, Pretty } from '@typeofweb/utils'; type Refinement = ( this: SomeSchema, diff --git a/src/validators/object.ts b/src/validators/object.ts index 4739639..4d80c57 100644 --- a/src/validators/object.ts +++ b/src/validators/object.ts @@ -1,8 +1,10 @@ /* eslint-disable functional/no-loop-statement */ + import { refine } from '../refine'; import { schemaToString, objectToPrint, quote } from '../stringify'; -import type { SomeSchema, TypeOf, UndefinedToOptional, ErrorDataEntry } from '../types'; +import type { SomeSchema, TypeOf, ErrorDataEntry } from '../types'; +import type { UndefinedToOptional } from '@typeofweb/utils'; export interface ObjectSchemaOptions { readonly allowUnknownKeys?: boolean;