Skip to content

Commit

Permalink
Fix for TS<=3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Dec 21, 2020
1 parent c1f2306 commit 0244869
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,21 @@ export namespace JSXInternal {
}

type DOMCSSProperties = {
[key in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[key] extends string
? string | number | null | undefined
: never;
[key in keyof Omit<
CSSStyleDeclaration,
| 'item'
| 'setProperty'
| 'removeProperty'
| 'getPropertyValue'
| 'getPropertyPriority'
>]?: string | number | null | undefined;
};
type AllCSSProperties = {
[key: string]: string | number | null | undefined;
};
interface CSSProperties extends AllCSSProperties, DOMCSSProperties {}
interface CSSProperties extends AllCSSProperties, DOMCSSProperties {
cssText?: string | null;
}

interface SVGAttributes<Target extends EventTarget = SVGElement>
extends HTMLAttributes<Target> {
Expand Down

0 comments on commit 0244869

Please sign in to comment.