mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Fix state initializers in react-tests.ts (Fixes #3855)
This commit is contained in:
@@ -324,7 +324,7 @@ interface TimerState {
|
||||
secondsElapsed: number;
|
||||
}
|
||||
class Timer extends React.Component<React.Props<Timer>, TimerState> {
|
||||
static state = {
|
||||
state = {
|
||||
secondsElapsed: 0
|
||||
}
|
||||
private _interval: number;
|
||||
|
||||
Reference in New Issue
Block a user