N

iconPacks

namespace iconPacks

Functions

F

disable(id: string): void

Disables an icon pack and restores the default icons.

F

enable(id: string): void | Promise<void>

Enables an icon pack and applies it.

F

get(id: string): AddonHandle | undefined

Reads one installed icon pack by id.

Lists every installed icon pack.

F

install(url: string, digest?: string): Promise<AddonHandle | undefined>

Installs an icon pack from its manifest URL.

F

isEnabled(id: string): boolean

Reports whether an icon pack is enabled.

F

reload(id: string, bundle: string, manifest: PushedManifest, bytecode?: string): Promise<ReloadResult>

Swaps an icon pack's files in place, keeping its enabled state.

F

toggle(id: string): void

Enables a disabled icon pack, or disables an enabled one.

F

uninstall(id: string): Promise<void>

Removes an installed icon pack.

F

update(id: string): Promise<boolean>

Checks for updates, then applies this icon pack's pending update.

Returns

Whether the icon pack now runs a newer version.

Types

The outcome of an addon reload: success, or failure carrying the recorded error.