Skip to content

Commit

Permalink
chore(lib): explicit type imports (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosai106 authored Jul 30, 2024
1 parent 9817598 commit 962eca8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/validathor/src/core/parse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Parser } from '@/types'
import type { Parser } from '@/types'

export const parse = <T>(schema: Parser<T>, value: unknown) => {
return schema.parse(value)
Expand Down
2 changes: 1 addition & 1 deletion packages/validathor/src/schemas/boolean.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { validateModifiers } from '@/core/validateModifiers'
import type { Custom } from '@/modifiers/custom'
import { Parser } from '@/types'
import type { Parser } from '@/types'
import { assert, TypeError } from '@/utils'
import { ERROR_CODES } from '@/utils/errors/errorCodes'

Expand Down
2 changes: 1 addition & 1 deletion packages/validathor/src/schemas/date.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { validateModifiers } from '@/core/validateModifiers'
import type { Custom, Max, Min } from '@/modifiers'
import { Parser } from '@/types'
import type { Parser } from '@/types'
import { assert, TypeError } from '@/utils'
import { ERROR_CODES } from '@/utils/errors/errorCodes'

Expand Down
2 changes: 1 addition & 1 deletion packages/validathor/src/schemas/enum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Parser } from '@/types'
import type { Parser } from '@/types'
import { assert, TypeError, ValidationError } from '@/utils'
import { ERROR_CODES } from '@/utils/errors/errorCodes'

Expand Down
2 changes: 1 addition & 1 deletion packages/validathor/src/schemas/number.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { validateModifiers } from '@/core/validateModifiers'
import type { Custom, Enumerator, Max, Min } from '@/modifiers'
import { Parser } from '@/types'
import type { Parser } from '@/types'
import { assert, TypeError } from '@/utils'
import { ERROR_CODES } from '@/utils/errors/errorCodes'

Expand Down
2 changes: 1 addition & 1 deletion packages/validathor/src/schemas/object.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Parser } from '@/types'
import type { Parser } from '@/types'
import { assert, TypeError } from '@/utils'
import { ERROR_CODES } from '@/utils/errors/errorCodes'

Expand Down
2 changes: 1 addition & 1 deletion packages/validathor/src/schemas/regex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Parser } from '@/types'
import type { Parser } from '@/types'
import { assert, TypeError } from '@/utils'
import { ERROR_CODES } from '@/utils/errors/errorCodes'

Expand Down
4 changes: 2 additions & 2 deletions packages/validathor/src/schemas/string.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { validateModifiers } from '@/core/validateModifiers'
import type { Custom, Email, Max, Min } from '@/modifiers'
import { Enumerator } from '@/modifiers/enumerator'
import { Parser } from '@/types'
import type { Enumerator } from '@/modifiers/enumerator'
import type { Parser } from '@/types'
import { assert, TypeError } from '@/utils'
import { ERROR_CODES } from '@/utils/errors/errorCodes'

Expand Down

0 comments on commit 962eca8

Please sign in to comment.