Skip to content

Commit e640ade

Browse files
authored
Fix react test for TS 6.0 (DefinitelyTyped#74430)
1 parent 9a03d87 commit e640ade

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

types/react/test/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ModernComponent extends React.Component<Props, State, Snapshot> implements
135135
static propTypes = {};
136136

137137
static contextType = SomeContext;
138-
context: Context;
138+
declare context: Context;
139139

140140
constructor(props: Props, context: Context) {
141141
super(props, context);

0 commit comments

Comments
 (0)