Skip to content

Instantly share code, notes, and snippets.

@kingsleyh
Created March 23, 2017 18:30
Show Gist options
  • Save kingsleyh/0e3ebd3e88541a618ad3c32ad856cd36 to your computer and use it in GitHub Desktop.
Save kingsleyh/0e3ebd3e88541a618ad3c32ad856cd36 to your computer and use it in GitHub Desktop.
Elm stuff
type alias CurrentBoardModel =
{board : CurrentBoard
,newListState : NewListState
,newListTitle : String
, newCardTitle : String
, newCardState : Dict String NewCardStateHolder
, currentCard : Maybe Card
, problem : Maybe String
, editingListId : String
, editListTitle : String
, navBar : NavModel
}
type alias CurrentBoard =
{ boardId : String
, userId : String
, name : String
, starred : Bool
, description : String
, isPrivate : Bool
, pendingForUser : Bool
, lists : List BoardList
, members : List Member
, labels : List Label
}
type alias Card =
{ cardId : String
, listId : String
, name : String
, description : String
, position : Int
, members : List Member
}
type alias BoardList =
{ listId : String
, boardId : String
, name : String
, position : Int
, cards : List Card
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment