@wxt-dev/auto-icons
Version:
WXT module for automatically generating extension icons in different sizes
50 lines (46 loc) • 1.3 kB
text/typescript
import * as wxt from 'wxt';
declare const _default: wxt.WxtModule<AutoIconsOptions>;
/**
* Options for the auto-icons module
*/
interface AutoIconsOptions {
/**
* Enable auto-icons generation
* @default true
*/
enabled?: boolean;
/**
* Path to the image to use.
*
* Path is relative to the project's src directory.
* @default "<srcDir>/assets/icon.png"
*/
baseIconPath?: string;
/**
* Apply a visual indicator to the icon when running in development mode.
*
* "grayscale" converts the icon to grayscale.
* "overlay" covers the bottom half with a yellow rectangle and writes "DEV" in black text.
* Set to `false` to disable any indicator.
*
* @default "grayscale"
*/
developmentIndicator?: 'grayscale' | 'overlay' | false;
/**
* Grayscale the image when in development mode to indicate development
* @default true
* @deprecated Use `developmentIndicator` instead
*/
grayscaleOnDevelopment?: boolean;
/**
* Sizes to generate icons for
* @default [128, 48, 32, 16]
*/
sizes?: number[];
}
declare module 'wxt' {
interface InlineConfig {
autoIcons?: AutoIconsOptions;
}
}
export { type AutoIconsOptions, _default as default };