Checking if an Object is a StorageDisk Instance

how can i check if that is storage disk or not? i cannot do instanceOf since its not a class, but object
import { Data } from 'effect'

export type StorageDisk = Data.TaggedEnum<{
  fs: object;
  blackblaze: object;
}>

export const StorageDisk = Data.taggedEnum<StorageDisk>()

const isStorageDisk = StorageDisk.blackblaze() // how to check if this is a storage disk?
Was this page helpful?