Skip to content

Commit

Permalink
build: fix netlify options type
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 19, 2024
1 parent 32b1bbe commit 756fee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/_drivers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
10 changes: 5 additions & 5 deletions src/drivers/netlify-blobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 756fee4

Please sign in to comment.