Skip to content

Commit

Permalink
[React] Remove string index fallback for CSS properties (resolves #24568
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pelotom committed Apr 11, 2018
1 parent 81d0e49 commit 7f510aa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions types/react/index.d.ts
Expand Up @@ -898,11 +898,7 @@ declare namespace React {
onTransitionEndCapture?: TransitionEventHandler<T>;
}

export interface CSSProperties extends CSS.Properties<string | number> {
// The string index signature fallback is needed at least until csstype
// provides SVG CSS properties: https://github.com/frenic/csstype/issues/4
[propertyName: string]: any;
}
export interface CSSProperties extends CSS.Properties<string | number> {}

interface HTMLAttributes<T> extends DOMAttributes<T> {
// React-specific Attributes
Expand Down

0 comments on commit 7f510aa

Please sign in to comment.