Error Suggests Missing Decoder for Branded Type
I think this error is indicative that I need to declare a decode for my branded type, Just wanted to see if i'm on the right track
frontend:build | (<declaration schema> <-> { readonly id: string & Brand<"BlogPostId">; readonly title: string & Brand<"BlogPostTitle">; readonly author: string & Brand<"BlogPostAuthor">; readonly content: string & Brand<"BlogPostContent">; readonly date: string & Brand<"BlogPostDate"> })
frontend:build | └─ Type side transformation failure
frontend:build | └─ Expected { readonly id: string & Brand<"BlogPostId">; readonly title: string & Brand<"BlogPostTitle">; readonly author: string & Brand<"BlogPostAuthor">; readonly content: string & Brand<"BlogPostContent">; readonly date: string & Brand<"BlogPostDate"> }, actual undefined frontend:build | (<declaration schema> <-> { readonly id: string & Brand<"BlogPostId">; readonly title: string & Brand<"BlogPostTitle">; readonly author: string & Brand<"BlogPostAuthor">; readonly content: string & Brand<"BlogPostContent">; readonly date: string & Brand<"BlogPostDate"> })
frontend:build | └─ Type side transformation failure
frontend:build | └─ Expected { readonly id: string & Brand<"BlogPostId">; readonly title: string & Brand<"BlogPostTitle">; readonly author: string & Brand<"BlogPostAuthor">; readonly content: string & Brand<"BlogPostContent">; readonly date: string & Brand<"BlogPostDate"> }, actual undefined