Skip to content

Commit

Permalink
Fix type assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyheavener committed May 23, 2024
1 parent 4a00f0e commit 175ccbd
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ export class Items {
return;
}

const vaultItem = await this.core.cli.execute<Item>(() =>
item.get(itemValue, {
vault: this.core.vaultId,
cache: config.get<boolean>(ConfigKey.ItemsCacheValues),
}),
const vaultItem = await this.core.cli.execute<Item>(
() =>
item.get(itemValue, {
vault: this.core.vaultId,
cache: config.get<boolean>(ConfigKey.ItemsCacheValues),
}) as Item,
);

if (!vaultItem) {
Expand Down Expand Up @@ -122,7 +123,7 @@ export class Items {
item.get(itemId, {
vault: vaultId,
cache: config.get<boolean>(ConfigKey.ItemsCacheValues),
}),
}) as Item,
false,
);

Expand Down Expand Up @@ -210,7 +211,9 @@ export class Items {
return;
}

vaultItem = await this.core.cli.execute<Item>(() => item.get(vaultItem.id));
vaultItem = await this.core.cli.execute<Item>(
() => item.get(vaultItem.id) as Item,
);

if (!vaultItem) {
return;
Expand Down

0 comments on commit 175ccbd

Please sign in to comment.