Skip to content

API > wxt > ResolvedPerBrowserOptions

Type alias: ResolvedPerBrowserOptions<T, TOmitted>

ResolvedPerBrowserOptions<T, TOmitted>: { [key in keyof Omit<T, TOmitted>]: T[key] extends PerBrowserOption<infer U> ? U : T[key] } & { [key in TOmitted]: T[key] }

Convert { key: PerBrowserOption<T> } to just { key: T }, stripping away the PerBrowserOption type for all fields inside the object.

A optional second list of keys can be passed if a field isn't compatible with PerBrowserOption, like defaultIcon.

Type parameters

ParameterDefault
T-
TOmitted extends keyof Tnever

Source

packages/wxt/src/types.ts:846


Generated using typedoc-plugin-markdown and TypeDoc