fix(plugins/developer-settings): crash on copy React DevTools version
This commit is contained in:
parent
96121e31e0
commit
9c8d55af21
2 changed files with 2 additions and 2 deletions
2
lib/types/types.d.ts
vendored
2
lib/types/types.d.ts
vendored
|
|
@ -74,7 +74,7 @@ declare global {
|
|||
var __REACT_DEVTOOLS_GLOBAL_HOOK__: unknown | undefined
|
||||
var __REACT_DEVTOOLS__:
|
||||
| {
|
||||
version: string
|
||||
version: number
|
||||
exports: {
|
||||
connectToDevTools(opts: {
|
||||
host?: string
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const RDTVersionSetting: SettingsItem = CopyableSetting(
|
|||
title: () => 'React DevTools',
|
||||
usePredicate: () => RDTContext.active,
|
||||
},
|
||||
() => __REACT_DEVTOOLS__!.version,
|
||||
() => String(__REACT_DEVTOOLS__!.version),
|
||||
)
|
||||
|
||||
export default RDTVersionSetting
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue