Skip to content

Commit 70b88ac

Browse files
committed
resolve @ts-expect-errors
1 parent f78398c commit 70b88ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/commands.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ export async function uninstall(
150150
}
151151
} else if (lockfile?.[name]) {
152152
// if not, remove the dependency from the lockfile
153-
// @ts-expect-error Type 'undefined' is not assignable to type 'VendorLock'
154-
lockfile[name] = undefined;
153+
delete lockfile[name];
155154
await fs.writeFile(lockfilePath, JSON.stringify(lockfile, null, 2));
156155
}
157156

158-
// @ts-expect-error Type 'undefined' is not assignable to type 'VendorDependency'
159-
configFile.vendorDependencies[name] = undefined;
157+
delete configFile.vendorDependencies[name];
160158

161159
await writeConfig({
162160
configFile,

0 commit comments

Comments
 (0)