impr: 🏷️ Improved style typing on JSXElement

This commit is contained in:
Maicol Battistini 2022-03-14 18:21:13 +01:00
parent ccdf7c7309
commit bca3b837cf
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import type {Properties as CSSProperties} from 'csstype';
import type {CommonAttributes} from 'mithril';
import type {Response} from 'redaxios';
@ -6,7 +7,7 @@ export type ErrorResponse = Response<{errors: Record<string, string>}>;
export type JSXElement<T> = Omit<Partial<T>, 'children' | 'style'>
& CommonAttributes<any, any>
& {
style?: string | Partial<CSSStyleDeclaration>
style?: string | CSSProperties
};
export declare namespace JSONAPI {