@@ -118,12 +118,14 @@ export const PackageJsonPanel = () => {
118
118
dep : string
119
119
specified : string
120
120
} ) => {
121
- const info = outdatedDeps [ dep ] as {
122
- current : string
123
- wanted : string
124
- latest : string
125
- type ?: 'dependencies' | 'devDependencies'
126
- } | undefined
121
+ const info = outdatedDeps [ dep ] as
122
+ | {
123
+ current : string
124
+ wanted : string
125
+ latest : string
126
+ type ?: 'dependencies' | 'devDependencies'
127
+ }
128
+ | undefined
127
129
const current = info ?. current ?? specified
128
130
const latest = info ?. latest
129
131
const dt = info ? diffType ( current , latest ) : null
@@ -143,12 +145,14 @@ export const PackageJsonPanel = () => {
143
145
}
144
146
145
147
const UpgradeRowActions = ( { name } : { name : string } ) => {
146
- const info = outdatedDeps [ name ] as {
147
- current : string
148
- wanted : string
149
- latest : string
150
- type ?: 'dependencies' | 'devDependencies'
151
- } | undefined
148
+ const info = outdatedDeps [ name ] as
149
+ | {
150
+ current : string
151
+ wanted : string
152
+ latest : string
153
+ type ?: 'dependencies' | 'devDependencies'
154
+ }
155
+ | undefined
152
156
if ( ! info ) return null
153
157
return (
154
158
< div style = { { display : 'flex' , gap : 6 } } >
@@ -236,12 +240,14 @@ export const PackageJsonPanel = () => {
236
240
</ thead >
237
241
< tbody >
238
242
{ Object . entries ( deps || { } ) . map ( ( [ dep , version ] ) => {
239
- const info = outdatedDeps [ dep ] as {
240
- current : string
241
- wanted : string
242
- latest : string
243
- type ?: 'dependencies' | 'devDependencies'
244
- } | undefined
243
+ const info = outdatedDeps [ dep ] as
244
+ | {
245
+ current : string
246
+ wanted : string
247
+ latest : string
248
+ type ?: 'dependencies' | 'devDependencies'
249
+ }
250
+ | undefined
245
251
const isOutdated = ! ! info && info . current !== info . latest
246
252
return (
247
253
< tr key = { dep } >
0 commit comments