Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mittcio opened this issue Dec 2, 2024 · 3 comments

Comments

@Mittcio
Copy link

Mittcio commented Dec 2, 2024

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

@Mittcio
Copy link
Author

Mittcio commented Dec 2, 2024

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

@Mittcio
Copy link
Author

Mittcio commented Dec 2, 2024

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

@Mittcio
Copy link
Author

Mittcio commented Dec 2, 2024

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;
    };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant