0.1.6Updated a month ago
declare namespace Entity {
  interface Options<PEMC extends Entity.Meta.Config = Entity.Meta.Config> {
    /**
     * Additional single-value records that can be stored alongside this entity
     */
    meta_fields?: PEMC

    /**
     * Configuration options for the `key` index field
     */
    key: Entity.Key.Options

    /**
     * In the Infinity Beyond dashboard, this will be displayed next to navigation buttons leading to this data type
     */
    ui_icon?: import("lucide-preact").LucideIcon
  }

  namespace Options {
    type Optional<PEMC extends Entity.Meta.Config> = Omit<Options<PEMC>, 'key'> & Partial<Pick<Options, 'key'>>
  }
}