Skip to content

Commit

Permalink
Removed the TypeScript section recommended by Simeon, for faster merge
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonkinard committed May 9, 2024
1 parent 26a3ff2 commit 7f82152
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions proposals/dark_mode_extension_icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,44 +43,6 @@ The Chromium bug has a significant amount of developer interest.

## Specification

### Schema

manifest.json
```
type ImagePath = string;
type ColorScheme = "light" | "dark";
interface IconVariantsBase {
color_scheme?: ColorScheme | ColorScheme[];
}
interface IconVariantsManifest extends IconVariantsBase {
any?: ImagePath;
[index: number]: ImagePath;
}
interface ManifestAction {
[icon_variants: string]: IconVariantsManifest;
}
interface ExtensionManifest {
icon_variants: IconVariantsManifest[];
action: ManifestAction;
}
```

action.setIcon
```
interface SetIconVariantsApiDetails extends IconVariantsBase {
any?: ImagePath | ImageData;
[index: number]: ImagePath | ImageData;
}
interface SetIconVariantsApi {
[variants: string]: ActionIconVariants;
}
```

### Examples

manifest.json
Expand Down

0 comments on commit 7f82152

Please sign in to comment.