feat(themes): deep merge themes by default

This commit is contained in:
unix
2020-04-08 19:18:26 +08:00
parent c716090dd1
commit 44ac746fba
3 changed files with 37 additions and 4 deletions

4
components/utils/types.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Record<string, any> ? DeepPartial<T[P]> : T[P]
}