Byloth/vuert

`AlertCustomOptions` doesn't work properly

Opened this issue · 1 comments

Make it work!

export interface AlertCustomOptions { }

import type { IconDefinition } from "@fortawesome/free-brands-svg-icons";

declare module "@byloth/vuert"
{
    interface AlertCustomOptions
    {
        icon?: IconDefinition;
    }
}

The previous definition doesn't work correctly.
It ends up breaking 2 different things:

  1. The icon key is now defined as string & IconDefinition which makes using both the string or IconDefinition types impractical.
  2. Any other symbols exported from @byloth/vuert end up not being exported at all; the only valid key exported is actually the AlertCustomOptions interface.

Solve these problems.