You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very helpful to abstract these objects away in a comment interface, as currently in our code we use a lot of switch/case such as
switch obj.Type{
case "block":
return obj.CreatedAt
case "page":
return obj.CreatedAt
}
It would be much nicer to be able to do
obj.GetCreatedAt()
simplifying the client code greatly. It seems Blocks have a common Block interface, I am wondering if we can create a common interface shared between Blocks, Pages, and Databases to access these common fields?
The text was updated successfully, but these errors were encountered:
It would be very helpful to abstract these objects away in a comment interface, as currently in our code we use a lot of switch/case such as
It would be much nicer to be able to do
simplifying the client code greatly. It seems Blocks have a common
Block
interface, I am wondering if we can create a common interface shared between Blocks, Pages, and Databases to access these common fields?The text was updated successfully, but these errors were encountered: