npm install --save @types/laravel-vapor
This package contains type definitions for laravel-vapor (https://github.com/laravel/vapor-js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/laravel-vapor.
//
interface VaporStoreOptions {
signedStorageUrl?: string | undefined;
bucket?: string | undefined;
cancelToken?: string | undefined;
contentType?: string | undefined;
data?: any;
expires?: string | undefined;
visibility?: string | undefined;
baseURL?: string | undefined;
headers?: any;
options?: any;
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
progress?: (value: number) => void | undefined;
}
declare class Vapor {
store(file: File, options?: VaporStoreOptions): Promise<any>;
withBaseAssetUrl(url?: string): void;
asset(path: string): string;
}
declare const VaporInstance: Vapor;
export = VaporInstance;
- Last updated: Mon, 17 Jun 2024 20:07:03 GMT
- Dependencies: none
These definitions were written by saibotk.