full site update
This commit is contained in:
10
node_modules/unstorage/drivers/utils/index.d.ts
generated
vendored
Normal file
10
node_modules/unstorage/drivers/utils/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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 {};
|
Reference in New Issue
Block a user