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

11 lines
660 B
TypeScript

import type { Driver } from "../..";
type DriverFactory<OptionsT, InstanceT> = (opts: OptionsT) => Driver<OptionsT, InstanceT>;
interface ErrorOptions {
}
export declare function defineDriver<OptionsT = any, InstanceT = never>(factory: DriverFactory<OptionsT, InstanceT>): DriverFactory<OptionsT, InstanceT>;
export declare function normalizeKey(key: string | undefined, sep?: ":" | "/"): string;
export declare function joinKeys(...keys: string[]): string;
export declare function createError(driver: string, message: string, opts?: ErrorOptions): Error;
export declare function createRequiredError(driver: string, name: string | string[]): Error;
export {};