Merge pull request #310 from reuters-graphics/mf-ts-fix

Fix prop type on Theme
This commit is contained in:
MinamiFunakoshiTR 2025-05-21 09:51:09 -05:00 committed by GitHub
commit 262b0453d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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