Update theme.fontSize types (#8040)

This commit is contained in:
Brad Cornes 2022-04-04 14:35:33 +01:00 committed by GitHub
parent 2d3a748d1f
commit b9dec5feb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
types/config.d.ts vendored
View File

@ -158,18 +158,18 @@ interface ThemeConfig {
textIndent: ThemeConfig['spacing']
fontFamily: ResolvableTo<KeyValuePair<string, string[]>>
fontSize: ResolvableTo<
| KeyValuePair<string, string>
| KeyValuePair<string, [fontSize: string, lineHeight: string]>
| KeyValuePair<
string,
[
KeyValuePair<
string,
| string
| [fontSize: string, lineHeight: string]
| [
fontSize: string,
configuration: Partial<{
lineHeight: string
letterSpacing: string
}>
]
>
>
>
fontWeight: ResolvableTo<KeyValuePair>
lineHeight: ResolvableTo<KeyValuePair>