Files
Tiber365/node_modules/unstorage/drivers/netlify-blobs.d.ts
2025-07-24 18:46:24 +02:00

20 lines
934 B
TypeScript

import type { Store, GetStoreOptions, GetDeployStoreOptions } from "@netlify/blobs";
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;
}
export interface NetlifyDeployStoreOptions extends GetDeployStoreOptions, ExtraOptions {
name?: never;
deployScoped: true;
}
export interface NetlifyDeployStoreLegacyOptions extends NetlifyDeployStoreOptions {
region?: never;
}
export interface NetlifyNamedStoreOptions extends GetStoreOptions, ExtraOptions {
name: string;
deployScoped?: false;
}
declare const _default: (opts: NetlifyStoreOptions) => import("..").Driver<NetlifyStoreOptions, Store>;
export default _default;