#Custom blocks using interfaceName

2 messages · Page 1 of 1 (latest)

icy sable
#

Are there any working examples of custom blocks which implement the use of interfaceName feature in the block schema?

I notice that properties that are referring to a collection (eg: Media / User) are defined as string | Media in the payload-types.ts ... what would their value be if they return a string rather than an object?

Should we be implementing a type guard isMedia() utility function to check properties of blocks passed through to front end components?

cursive summitBOT