Skip to content

Commit

Permalink
fix: allow all themes from vega themes in types (#1288)
Browse files Browse the repository at this point in the history
* fix: allow all themes from vega themes in types

* Don't allow 'version' as theme
  • Loading branch information
domoritz committed Dec 19, 2023
1 parent e3e703d commit cab79d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface EmbedOptions<S = string, R = Renderers> {
bind?: HTMLElement | string;
actions?: boolean | Actions;
mode?: Mode;
theme?: 'excel' | 'ggplot2' | 'quartz' | 'vox' | 'dark';
theme?: keyof Omit<typeof themes, 'version'>;
defaultStyle?: boolean | string;
logLevel?: number;
loader?: Loader | LoaderOptions;
Expand Down

0 comments on commit cab79d2

Please sign in to comment.