Skip to content

Commit

Permalink
[react] Add comment about removed index signature
Browse files Browse the repository at this point in the history
  • Loading branch information
frenic committed Apr 12, 2018
1 parent c93bda4 commit 6da4210
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion types/react/index.d.ts
Expand Up @@ -897,7 +897,16 @@ declare namespace React {
onTransitionEndCapture?: TransitionEventHandler<T>;
}

export interface CSSProperties extends CSS.Properties<string | number> {}
export interface CSSProperties extends CSS.Properties<string | number> {
/**
* The index signature was removed to enable closed typing for style
* using CSSType. You're able to use type assertion or module augmentation
* to add properties or an index signature of your own.
*
* For examples and more information, visit:
* https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
*/
}

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

0 comments on commit 6da4210

Please sign in to comment.