From 175ccbddf7a798f3209f76ecfa1de81f119114c4 Mon Sep 17 00:00:00 2001 From: Jody Heavener Date: Thu, 23 May 2024 14:50:30 -0700 Subject: [PATCH] Fix type assignment --- src/items.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/items.ts b/src/items.ts index de98afa..cb97368 100644 --- a/src/items.ts +++ b/src/items.ts @@ -73,11 +73,12 @@ export class Items { return; } - const vaultItem = await this.core.cli.execute(() => - item.get(itemValue, { - vault: this.core.vaultId, - cache: config.get(ConfigKey.ItemsCacheValues), - }), + const vaultItem = await this.core.cli.execute( + () => + item.get(itemValue, { + vault: this.core.vaultId, + cache: config.get(ConfigKey.ItemsCacheValues), + }) as Item, ); if (!vaultItem) { @@ -122,7 +123,7 @@ export class Items { item.get(itemId, { vault: vaultId, cache: config.get(ConfigKey.ItemsCacheValues), - }), + }) as Item, false, ); @@ -210,7 +211,9 @@ export class Items { return; } - vaultItem = await this.core.cli.execute(() => item.get(vaultItem.id)); + vaultItem = await this.core.cli.execute( + () => item.get(vaultItem.id) as Item, + ); if (!vaultItem) { return;