From 3950d3632525a19f3a6745761e054e9200efb1a9 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:56:02 +0000 Subject: [PATCH] chore: apply automated lint fixes --- src/types.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index ec678b26..850681f1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -70,13 +70,19 @@ type StorageItemMap = T["items"]; export interface Storage { // Item - hasItem, K extends keyof StorageItemMap>( + hasItem< + U extends Extract, + K extends keyof StorageItemMap, + >( key: K, opts?: TransactionOptions ): Promise; hasItem(key: string, opts?: TransactionOptions): Promise; - getItem, K extends keyof StorageItemMap>( + getItem< + U extends Extract, + K extends keyof StorageItemMap, + >( key: K, ops?: TransactionOptions ): Promise[K] | null>; @@ -96,7 +102,10 @@ export interface Storage { opts?: TransactionOptions ) => Promise | null>; - setItem, K extends keyof StorageItemMap>( + setItem< + U extends Extract, + K extends keyof StorageItemMap, + >( key: K, value: StorageItemMap[K], opts?: TransactionOptions