Merge pull request #310 from reuters-graphics/mf-ts-fix
Fix prop type on Theme
This commit is contained in:
commit
262b0453d4
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
|||
import mergeThemes from './utils/merge.js';
|
||||
|
||||
// Types
|
||||
import type { CustomTheme } from './@types/component';
|
||||
import type { CustomTheme, Theme } from './@types/component';
|
||||
import type { Snippet } from 'svelte';
|
||||
type Base = 'light' | 'dark';
|
||||
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
/** Custom theme object. Can be a partial theme with just
|
||||
* what you want to change.
|
||||
*/
|
||||
theme?: CustomTheme;
|
||||
theme?: CustomTheme | Theme;
|
||||
/**
|
||||
* Base theme is one of `light` or `dark` and will be merged
|
||||
* with your custom theme to fill in any values you don't
|
||||
|
|
|
|||
Loading…
Reference in a new issue