diff --git a/src/_drivers.ts b/src/_drivers.ts index 7780ba69..1e6e721e 100644 --- a/src/_drivers.ts +++ b/src/_drivers.ts @@ -21,7 +21,7 @@ import type { IDBKeyvalOptions as IndexedbOptions } from "unstorage/drivers/inde import type { LocalStorageOptions as LocalstorageOptions } from "unstorage/drivers/localstorage"; import type { LRUDriverOptions as LruCacheOptions } from "unstorage/drivers/lru-cache"; import type { MongoDbOptions as MongodbOptions } from "unstorage/drivers/mongodb"; -import type { ExtraOptions as NetlifyBlobsOptions } from "unstorage/drivers/netlify-blobs"; +import type { NetlifyStoreOptions as NetlifyBlobsOptions } from "unstorage/drivers/netlify-blobs"; import type { OverlayStorageOptions as OverlayOptions } from "unstorage/drivers/overlay"; import type { PlanetscaleDriverOptions as PlanetscaleOptions } from "unstorage/drivers/planetscale"; import type { RedisOptions as RedisOptions } from "unstorage/drivers/redis"; diff --git a/src/drivers/netlify-blobs.ts b/src/drivers/netlify-blobs.ts index 22edc296..614843bf 100644 --- a/src/drivers/netlify-blobs.ts +++ b/src/drivers/netlify-blobs.ts @@ -14,6 +14,11 @@ const DRIVER_NAME = "netlify-blobs"; type GetOptions = { type?: BlobResponseType }; +export type NetlifyStoreOptions = + | NetlifyDeployStoreLegacyOptions + | NetlifyDeployStoreOptions + | NetlifyNamedStoreOptions; + export interface ExtraOptions { /** If set to `true`, the store is scoped to the deploy. This means that it is only available from that deploy, and will be deleted or rolled-back alongside it. */ deployScoped?: boolean; @@ -39,11 +44,6 @@ export interface NetlifyNamedStoreOptions deployScoped?: false; } -export type NetlifyStoreOptions = - | NetlifyDeployStoreLegacyOptions - | NetlifyDeployStoreOptions - | NetlifyNamedStoreOptions; - export default defineDriver((options: NetlifyStoreOptions) => { const { deployScoped, name, ...opts } = options; let store: Store;