Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
typeofweb committed Jun 29, 2021
1 parent ee03839 commit ff0f04b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modifiers/minArrayLength.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { refine } from '../refine';

import type { TupleOf } from '../types';
import type { TupleOf } from '@typeofweb/utils';

export const minArrayLength = <L extends number>(minLength: L) =>
refine((value: readonly unknown[], t) => {
Expand Down
3 changes: 2 additions & 1 deletion src/refine.ts
Original file line number Diff line number Diff line change
@@ -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<NextResult, Input, ExitEarlyResult> = (
this: SomeSchema<any>,
Expand Down
4 changes: 3 additions & 1 deletion src/validators/object.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit ff0f04b

Please sign in to comment.