Skip to content

Commit

Permalink
revert changing UpdateableClimbFieldsType from type to inter
Browse files Browse the repository at this point in the history
face
  • Loading branch information
l4u532 committed Aug 25, 2023
1 parent ff733a9 commit 48c0f2d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/db/ClimbTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,8 @@ export interface ClimbChangeInputType {
}
}

interface UpdatableClimbFieldsType {
fa: ClimbType['fa']
name: ClimbType['name']
type: ClimbType['type']
gradeContext: ClimbType['gradeContext']
grades: ClimbType['grades']
content: ClimbType['content']
length: ClimbType['length']
boltsCount: ClimbType['boltsCount']
pitches: PitchChangeInputType[]
}
type UpdatableClimbFieldsType = Pick<ClimbType, 'fa' | 'name' | 'type' | 'gradeContext' | 'grades' | 'content' | 'length' | 'boltsCount' | 'pitches'>

/**
* Minimum required fields when adding a new climb or boulder problem
*/
Expand Down

0 comments on commit 48c0f2d

Please sign in to comment.