Skip to content

Commit

Permalink
fix: Change imports of option type
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Apr 13, 2020
1 parent 6f1fe5a commit d447be5
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/fieldCheckers/dayOfMonthChecker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { CronData, Options } from '../index'
import { CronData } from '../index'
import { err, valid } from '../result'
import checkField from '../helper'
import { doc } from 'prettier'
import { Options } from '../option'

const checkDaysOfMonth = (cronData: CronData, options: Options) => {
if (!cronData.daysOfMonth) {
Expand Down
3 changes: 2 additions & 1 deletion src/fieldCheckers/dayOfWeekChecker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CronData, Options } from '../index'
import { CronData } from '../index'
import { err, valid } from '../result'
import checkField from '../helper'
import { Options } from '../option'

const checkDaysOfWeek = (cronData: CronData, options: Options) => {
if (!cronData.daysOfWeek) {
Expand Down
3 changes: 2 additions & 1 deletion src/fieldCheckers/hourChecker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CronData, Options } from '../index'
import { CronData } from '../index'
import { err, valid } from '../result'
import checkField from '../helper'
import { Options } from '../option'

const checkHours = (cronData: CronData, options: Options) => {
if (!cronData.hours) {
Expand Down
3 changes: 2 additions & 1 deletion src/fieldCheckers/minuteChecker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CronData, Options } from '../index'
import { CronData } from '../index'
import { err, valid } from '../result'
import checkField from '../helper'
import { Options } from '../option'

const checkMinutes = (cronData: CronData, options: Options) => {
if (!cronData.minutes) {
Expand Down
3 changes: 2 additions & 1 deletion src/fieldCheckers/monthChecker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CronData, Options } from '../index'
import { CronData } from '../index'
import { err, valid } from '../result'
import checkField from '../helper'
import { Options } from '../option'

const checkMonths = (cronData: CronData, options: Options) => {
if (!cronData.months) {
Expand Down
3 changes: 2 additions & 1 deletion src/fieldCheckers/yearChecker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CronData, Options } from '../index'
import { CronData } from '../index'
import { err, valid } from '../result'
import checkField from '../helper'
import { Options } from '../option'

const checkYears = (cronData: CronData, options: Options) => {
if (!cronData.years) {
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import checkDaysOfMonth from './fieldCheckers/dayOfMonthChecker'
import checkMonths from './fieldCheckers/monthChecker'
import checkDaysOfWeek from './fieldCheckers/dayOfWeekChecker'
import checkYears from './fieldCheckers/yearChecker'
import { defaultOptions, InputOptions, validateOptions } from './option'
import { Options } from '../lib'
import { defaultOptions, InputOptions, Options, validateOptions } from './option'

export interface CronData {
seconds?: string
Expand Down

0 comments on commit d447be5

Please sign in to comment.