mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-08 22:38:04 +08:00
React-Burger-Menu: Compatibility with older versions of React
Removing the state of ReactBurgerMenu isn't compatible with older versions of React. I know that this request is a bit regressive, but explicitly defining the state would be more practical for those of us who can't easily upgrade React.
This commit is contained in:
2
types/react-burger-menu/index.d.ts
vendored
2
types/react-burger-menu/index.d.ts
vendored
@@ -41,7 +41,7 @@ export interface Props {
|
||||
width?: number | string;
|
||||
}
|
||||
|
||||
export class ReactBurgerMenu extends React.Component<Props> { }
|
||||
export class ReactBurgerMenu extends React.Component<Props, {}> { }
|
||||
|
||||
export class slide extends ReactBurgerMenu { }
|
||||
export class stack extends ReactBurgerMenu { }
|
||||
|
||||
Reference in New Issue
Block a user