mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove redundant {||} syntax (#48686)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48686 Changelog: [Internal] - Removed redundant `{||}` syntax Reviewed By: javache Differential Revision: D68205038 fbshipit-source-id: f7d3271142b6443a5859c3b668b7aebd3ce3ef3f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e8a64fd638
commit
f36bfe5dfa
@@ -18,7 +18,7 @@ import {FlatList, RootTagContext, TouchableOpacity, View} from 'react-native';
|
||||
import NativeSampleTurboModule from 'react-native/Libraries/TurboModule/samples/NativeSampleTurboModule';
|
||||
import {EnumInt} from 'react-native/Libraries/TurboModule/samples/NativeSampleTurboModule';
|
||||
|
||||
type State = {|
|
||||
type State = {
|
||||
testResults: {
|
||||
[string]: {
|
||||
type: string,
|
||||
@@ -27,7 +27,7 @@ type State = {|
|
||||
},
|
||||
...
|
||||
},
|
||||
|};
|
||||
};
|
||||
|
||||
type Examples =
|
||||
| 'callback'
|
||||
@@ -62,7 +62,7 @@ type ErrorExamples =
|
||||
| 'getObjectAssert'
|
||||
| 'promiseAssert';
|
||||
|
||||
class SampleTurboModuleExample extends React.Component<{||}, State> {
|
||||
class SampleTurboModuleExample extends React.Component<{}, State> {
|
||||
static contextType: React$Context<RootTag> = RootTagContext;
|
||||
eventSubscriptions: EventSubscription[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user