Skip to content

Commit ff0f04b

Browse files
committed
Fixes
1 parent ee03839 commit ff0f04b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/modifiers/minArrayLength.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { refine } from '../refine';
22

3-
import type { TupleOf } from '../types';
3+
import type { TupleOf } from '@typeofweb/utils';
44

55
export const minArrayLength = <L extends number>(minLength: L) =>
66
refine((value: readonly unknown[], t) => {

src/refine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { unionToPrint } from './stringify';
22
import { left, right, nextValid, nextNotValid } from './utils/either';
33

4-
import type { Either, If, Next, Pretty, SomeSchema } from './types';
4+
import type { Either, Next, SomeSchema } from './types';
5+
import type { If, Pretty } from '@typeofweb/utils';
56

67
type Refinement<NextResult, Input, ExitEarlyResult> = (
78
this: SomeSchema<any>,

src/validators/object.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/* eslint-disable functional/no-loop-statement */
2+
23
import { refine } from '../refine';
34
import { schemaToString, objectToPrint, quote } from '../stringify';
45

5-
import type { SomeSchema, TypeOf, UndefinedToOptional, ErrorDataEntry } from '../types';
6+
import type { SomeSchema, TypeOf, ErrorDataEntry } from '../types';
7+
import type { UndefinedToOptional } from '@typeofweb/utils';
68

79
export interface ObjectSchemaOptions {
810
readonly allowUnknownKeys?: boolean;

0 commit comments

Comments
 (0)