vuetify-nuxt-module icon indicating copy to clipboard operation
vuetify-nuxt-module copied to clipboard

Object literal may only specify known properties, and 'mdi' does not exist in type

Open Maxttier opened this issue 1 year ago • 3 comments

vuetify: {
    vuetifyOptions: {
      icons: {
        defaultSet: 'mdi',
        aliases,
        sets: {
          custom,
          mdi,
        },
      },
    },
Object literal may only specify known properties, and 'mdi' does not exist in type 'IconFontName[] | FontIconSet[]'.ts(2353)
(property) mdi: IconSet

https://nuxt.vuetifyjs.com/guide/ https://vuetifyjs.com/en/features/icon-fonts/#usage

Maxttier avatar Dec 02 '24 13:12 Maxttier

[{ name: 'mdi'}, { name: 'custom', ???????????????}

Maxttier avatar Dec 02 '24 13:12 Maxttier

Object literal may only specify known properties, and 'aliases' does not exist in type 'IconsOptions'.

Maxttier avatar Dec 02 '24 13:12 Maxttier

interface IconsOptions {
    /**
     * @default 'mdi'
     */
    defaultSet: IconSetName;
    /**
     * The prefix for UnoCSS Preset Icons.
     *
     * @default 'i-'
     */
    unocssIconPrefix?: string;
    /**
     * Override the default mdi icons.
     *
     * Icon names should include the prefix and the collection, for example:
     * - home: i-<collection>:<icon>
     */
    unocssIcons?: UnoCCSMdiIconSet;
    unocssAdditionalIcons?: Record<string, string>;
    sets?: IconFontName | IconFontName[] | FontIconSet[];
    svg?: {
        mdi?: JSSVGIconSet;
        fa?: FontAwesomeSvgIconSet;
    };
}

Maxttier avatar Dec 02 '24 13:12 Maxttier