Skip to content

Commit

Permalink
fix: lint 에러 수정 (#ATR-605)
Browse files Browse the repository at this point in the history
  • Loading branch information
LC-02s committed Sep 19, 2024
1 parent 52f4a7d commit 307d3b7
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { NEWSLETTER_CATEGORY } from '@/shared/constant'
import type { NewsletterCategory } from '@/shared/type'

interface SettingForm {
nickname: string
interest: NewsletterCategory[]
isNicknameChecked: boolean
userExpiration: number
occupation: string
}

type CheckFormDataWithNull = {
[K in keyof Omit<SettingForm, 'isNicknameChecked'>]: SettingForm[K] | null
Expand All @@ -8,12 +16,4 @@ type CheckFormDataWithoutNullType = {
[K in keyof Omit<SettingForm, 'isNicknameChecked'>]?: SettingForm[K]
}

interface SettingForm {
nickname: string
interest: (keyof typeof NEWSLETTER_CATEGORY)[]
isNicknameChecked: boolean
userExpiration: number
occupation: string
}

export type { CheckFormDataWithoutNullType, CheckFormDataWithNull, SettingForm }

0 comments on commit 307d3b7

Please sign in to comment.