@@ -131,6 +131,22 @@ export interface InlineConfig {
131131 * object or promise.
132132 */
133133 manifest ?: UserManifest | Promise < UserManifest > | UserManifestFn ;
134+ /**
135+ * Suppress specific warnings during the build process.
136+ *
137+ * @example
138+ * ```ts
139+ * export default defineConfig({
140+ * suppressWarnings: {
141+ * firefoxDataCollection: true,
142+ * },
143+ * })
144+ * ```
145+ */
146+ suppressWarnings ?: { firefoxDataCollection ?: boolean } & Record <
147+ string ,
148+ boolean
149+ > ;
134150 /**
135151 * Configure browser startup. Options set here can be overridden in a `web-ext.config.ts` file.
136152 */
@@ -462,7 +478,8 @@ export interface BuildStepOutput {
462478}
463479
464480export interface WxtDevServer
465- extends Omit < WxtBuilderServer , 'listen' | 'close' > , ServerInfo {
481+ extends Omit < WxtBuilderServer , 'listen' | 'close' > ,
482+ ServerInfo {
466483 /**
467484 * Stores the current build output of the server.
468485 */
@@ -566,7 +583,8 @@ export interface BackgroundEntrypointOptions extends BaseEntrypointOptions {
566583 type ?: PerBrowserOption < 'module' > ;
567584}
568585
569- export interface BaseContentScriptEntrypointOptions extends BaseEntrypointOptions {
586+ export interface BaseContentScriptEntrypointOptions
587+ extends BaseEntrypointOptions {
570588 matches ?: PerBrowserOption < NonNullable < ManifestContentScript [ 'matches' ] > > ;
571589 /**
572590 * See https://developer.chrome.com/docs/extensions/mv3/content_scripts/
@@ -633,14 +651,16 @@ export interface BaseContentScriptEntrypointOptions extends BaseEntrypointOption
633651 registration ?: PerBrowserOption < 'manifest' | 'runtime' > ;
634652}
635653
636- export interface MainWorldContentScriptEntrypointOptions extends BaseContentScriptEntrypointOptions {
654+ export interface MainWorldContentScriptEntrypointOptions
655+ extends BaseContentScriptEntrypointOptions {
637656 /**
638657 * See https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#isolated_world
639658 */
640659 world : 'MAIN' ;
641660}
642661
643- export interface IsolatedWorldContentScriptEntrypointOptions extends BaseContentScriptEntrypointOptions {
662+ export interface IsolatedWorldContentScriptEntrypointOptions
663+ extends BaseContentScriptEntrypointOptions {
644664 /**
645665 * See https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#isolated_world
646666 * @default "ISOLATED"
@@ -776,7 +796,8 @@ export type EntrypointGroup = Entrypoint | Entrypoint[];
776796
777797export type OnContentScriptStopped = ( cb : ( ) => void ) => void ;
778798
779- export interface IsolatedWorldContentScriptDefinition extends IsolatedWorldContentScriptEntrypointOptions {
799+ export interface IsolatedWorldContentScriptDefinition
800+ extends IsolatedWorldContentScriptEntrypointOptions {
780801 /**
781802 * Main function executed when the content script is loaded.
782803 *
@@ -787,7 +808,8 @@ export interface IsolatedWorldContentScriptDefinition extends IsolatedWorldConte
787808 main ( ctx : ContentScriptContext ) : any | Promise < any > ;
788809}
789810
790- export interface MainWorldContentScriptDefinition extends MainWorldContentScriptEntrypointOptions {
811+ export interface MainWorldContentScriptDefinition
812+ extends MainWorldContentScriptEntrypointOptions {
791813 /**
792814 * Main function executed when the content script is loaded.
793815 *
@@ -1393,6 +1415,13 @@ export interface ResolvedConfig {
13931415 */
13941416 alias : Record < string , string > ;
13951417 experimental : { } ;
1418+ /**
1419+ * List of warning identifiers to suppress during the build process.
1420+ */
1421+ suppressWarnings : { firefoxDataCollection ?: boolean } & Record <
1422+ string ,
1423+ boolean
1424+ > ;
13961425 dev : {
13971426 /** Only defined during dev command */
13981427 server ?: {
@@ -1576,9 +1605,8 @@ export interface WxtModule<TOptions extends WxtModuleOptions> {
15761605 setup ?: WxtModuleSetup < TOptions > ;
15771606}
15781607
1579- export interface WxtModuleWithMetadata <
1580- TOptions extends WxtModuleOptions ,
1581- > extends WxtModule < TOptions > {
1608+ export interface WxtModuleWithMetadata < TOptions extends WxtModuleOptions >
1609+ extends WxtModule < TOptions > {
15821610 type : 'local' | 'node_module' ;
15831611 id : string ;
15841612}
0 commit comments