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 eac518a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 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
4 changes: 2 additions & 2 deletions src/url-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const createOpenOPHandler =
itemValue: string;
};

const vaultItem = await core.cli.execute<Item>(() =>
item.get(itemValue, { vault: vaultValue }),
const vaultItem = await core.cli.execute<Item>(
() => item.get(itemValue, { vault: vaultValue }) as Item,
);

url.searchParams.append("a", core.accountUuid);
Expand Down

0 comments on commit eac518a

Please sign in to comment.