3 Commits

Author SHA1 Message Date
Nikita Gaidakov
ffadf2ba4b Improve resolveConfig return type: merge themes (#12272)
* Generate types: do not intersect with Config theme type when generating DefaultTheme

* Merge default theme in ResolvedConfig

* UnwrapResolvables on theme.extend as well

* Apply extend to overrides and default theme

* Omit extend from DefaultTheme

* Relax generic constraints, better generic variable names

* Fall back to ThemeConfig if key not in DefaultTheme

* Split out ThemeConfigCustomizable to avoid anys in ThemeConfigResolved

* Allow custom theme properties

* handle TypeScript error

* apply prettier formatting

* update changelog

* change type name

---------

Co-authored-by: Nikita Gaidakov <ngaidakov@podfather.com>
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2023-10-30 14:55:42 -04:00
Robin Malfait
4f92e2ff5e
Improve return value of resolveConfig, unwrap ResolvableTo (#9972)
* improve return value of `resolveConfig`, unwrap `ResolvableTo`

* update changelog
2022-11-30 14:26:15 +01:00
Josh Michaels
76f02e407e
Add declaration file for resolveConfig (#8924)
* add declaration file for resolveConfig

* alter spacing to match other .d.ts files
2022-07-25 14:54:25 -04:00