Skip to content

Commit

Permalink
fix(types): fix supabase types
Browse files Browse the repository at this point in the history
rudnovd committed Feb 25, 2024
1 parent 1ce23f9 commit d313e3e
Showing 2 changed files with 10 additions and 13 deletions.
8 changes: 7 additions & 1 deletion src/types/item.ts
Original file line number Diff line number Diff line change
@@ -3,5 +3,11 @@ import type { InsertType, RowType } from './supabase'
export type Item = Omit<RowType<'items'>, 'owner'>
export type ItemBlank = InsertType<'items'>

export type ItemSymbol = RowType<'items_symbols'>
export interface ItemSymbol {
description: string
group: string
name: string
}
export type ItemTag = RowType<'items_tags'>

// export type ItemSymbolKey = 'wash' | 'mild-wash' | 'very-mild-wash' | 'hand-wash' | 'do-not-wash' | 'wash-cold' |
15 changes: 3 additions & 12 deletions src/types/supabase.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
export type ItemTagGroup =
| 'colors'
| 'tops'
| 'bottoms'
| 'outwear'
| 'footwear'
| 'underwear-and-nightwear'
| 'bedding'

export type ItemSymbolGroup =
| 'washing'
| 'ironing'
@@ -112,15 +103,15 @@ export interface Database {
}
items_tags: {
Row: {
group: ItemTagGroup
group: string
name: string
}
Insert: {
group: ItemTagGroup
group: string
name: string
}
Update: {
group?: ItemTagGroup
group?: string
name?: string
}
Relationships: [

0 comments on commit d313e3e

Please sign in to comment.